Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确实按照文档上的建议来启用 clang 代码完成,但似乎在最新版本上没有单独添加搜索路径和编译器标志的选项,我尝试在搜索路径窗口中添加编译器标志,但不是显示任何证据表明它抓住了新路径:
知道我做错了什么吗?
您不需要单独设置路径以使 clang 代码完成工作。您只需要重新构建(即干净地跟随构建)您的项目一次。
如果一切正常,您应该在 CodeLite 的构建日志中看到类似于:
codelite-cc g++ ...(或codelite-cc clang++...)该codelite-cc实用程序将收集传递给编译器的搜索路径(以及宏和其他标志)并将它们传递回 CodeLite,因此它将传递给 libClang 以获得正确的代码完成代码。
codelite-cc g++ ...
codelite-cc clang++...
codelite-cc