Downloads
Wiki
Build CodeLite
Devs
|
Main /
ClangIntegration41On this page... (hide) Note: If you are using CodeLite 13 or later, clang code-completion is deprecated; please use the Language Server plugin instead.code completion in codelite using libclangThis document refers to codelite 4.1 and up, if you are still using an older version of codelite please use this guide Enabling clang code completionBy default, clang code completion is disabled. You can enable it from Settings -> Code Completion -> clang clang has 2 working mode:
Once clang completion is enabled, you will need to perform at least one full rebuild of your workspace. This is required so codelite can collect the exact compilation command line for each file in your workspace, this information is stored into a small SQLite database. clang for custom makefile projectsWith codelite 4.1, the only difference between standard codelite project and a custom project is that for a custom makefile project you need to define these 2 environment variables from: settings -> environment variables: CXX=codelitegcc g++ CC=codelitegcc gcc Once they defined, you need to perform at least one full rebuild of your workspace clang for custom projects with CMakeIf your project is configured as a custom makefile project that uses a CMake generated files there are 2 things you need to do in order to enable the clang code completion:
CXX=codelitegcc g++ CC=codelitegcc gcc Regenerate the makefiles and perform a full rebuild |