13,871
社区成员




C++ Builder(RAD Studio)11.1代码提示问题:
1、要Win64位系统;
2、RAD Studio安装目录下Bin64目录里要有cquery.exe和ideclang50.dll;
3、工程要已经保存;
4、第一次使用时,要重新加载一次工程,并等cquery.exe开始大量占用CPU和内存后再开始编写代码;
5、要使用clang编译器(C++ Builder 10.3以上版本新建工程默认选项就是,10.2及以下版本新建VCL工程Win32配置默认使用经典编译器),11.1版本中Win32经典编译器的代码提示已经取消了。
旧版VCL工程Win32配置设置编译器:Project——Options——Building——C++ Compiler——C++ Compilers(WIN32),再保存工程。
压根不能用 真烂啊
现在不少IDE都用CLANG作为代码分析器。但是Clang占用资源好霸道,而且IDE做的不好很是让用户发脾气。
除非为了兼容某些老代码,传统32位编译器没必要使用~
11.1版本中经典编译器代码提示问题应该不是取消了,应该是一个bug或者说LSP不支持经典编译器。按照stackoverflow上面网友提示,是可以的,感觉禁止LSP就可以了。
方法如下:
刚刚在stackoverflow上找到答案,解决了经典编译器没有代码提示问题。
方法如下:
0
I've 'upgraded' too! One annoyance from 11.0 in the IDE fixed (toolbar customization not working) to now in 11.1 no code completion using either the classic borland or clang compiler. I've stuck with Rad Studio since using version 1 in the 90's. Very disappointed!
edited data: This solution is from Roy Nelson (not sure of affiliation)
Close your project.
Tools | Options | IDE | Environment Variables | [New...] Add a variable called "BDS_NO_LSP" (without quotes) and set the value to "T" also without quotes.
[OK]
[Save]
Restart the IDE
The downside is that the LSP will now not for Clang based projects.
EMB应该对cquery做了很多重构,最终CB的LSP和Delphi的LSP可能会合并
这么多注意事项,一点都不好用。RAD Stduio的编辑器太难用。不会抄个开源产品的吗?
C++ Builder 11.1版本基于cquery的代码提示比10.3和10.4版本有了很大的改进,基本上可用了。
要64位Win10以上系统