C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Go to file
Dan Čermák 795ad205d7 Only add include directories for LLVM, clang & rapidjson if they are not in CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
/usr/include/c++/9 comes before /usr/include in `{clang,gcc} -v -fsyntax-only -xc++ /dev/null`.

    target_include_directories(ccls SYSTEM PRIVATE ${RapidJSON_INCLUDE_DIRS})

If ${RapidJSON_INCLUDE_DIRS} resolves to /usr/include, /usr/include will
be shuffled before /usr/include/c++/9 and will cause `#include_next <stdlib.h>`
issues (see https://github.com/MaskRay/ccls/pull/417).

Check if the include directories are already in CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES.
2019-06-27 12:19:11 +02:00
.github Add .github/ISSUE_TEMPLATE 2019-03-01 17:37:37 -08:00
ci Use clang_File_tryGetRealPathName 2019-10-23 21:56:50 -07:00
index_tests Fix EnumConstantDecl's kind & EnumDecl's vars 2019-11-09 20:09:13 -08:00
src project: support %cu directive and strip -M* options 2019-06-27 19:11:38 -07:00
third_party Remove ASTUnit from indexer and clean up 2019-10-24 01:13:22 -07:00
.appveyor.yml cmake: delete SYSTEM_CLANG and auto-download mechanism 2019-01-22 22:44:13 +08:00
.clang-format First draft: replace libclang indexer with clangIndex 2019-10-24 00:53:16 -07:00
.gitignore Add .github/ISSUE_TEMPLATE 2019-03-01 17:37:37 -08:00
.gitmodules rapidjson url (#43) 2019-10-24 01:01:21 -07:00
CMakeLists.txt Only add include directories for LLVM, clang & rapidjson if they are not in CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES 2019-06-27 12:19:11 +02:00
LICENSE Add Apache LICENSE file (#121) 2019-11-09 20:09:13 -08:00
README.md Misc 2019-03-02 18:18:02 -08:00

ccls

Telegram Gitter

ccls, which originates from cquery, is a C/C++/Objective-C language server.

It has a global view of the code base and support a lot of cross reference features, see wiki/FAQ. It starts indexing the whole project (including subprojects if exist) parallelly when you open the first file, while the main thread can serve requests before the indexing is complete. Saving files will incrementally update the index.

>>> Getting started (CLICK HERE) <<<

ccls can index itself (~180MiB RSS when idle, noted on 2018-09-01), FreeBSD, glibc, Linux, LLVM (~1800MiB RSS), musl (~60MiB RSS), ... with decent memory footprint. See wiki/Project-Setup for examples.