You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nikolaus Wittenstein 89faa7a6ef Add Apache LICENSE file (#121) 6 years ago
ci Use clang_File_tryGetRealPathName 5 years ago
clang_archive_hashes -DSYSTEM_CLANG=off: 6.0.1 -> 7.0.0 5 years ago
cmake Fix VS2017 build issues and add Appveyor CI script (#118) 5 years ago
index_tests Fix EnumConstantDecl's kind & EnumDecl's vars 5 years ago
src Use SM.isWrittenInMainFile; suppress -Werror in preamble 5 years ago
third_party Remove ASTUnit from indexer and clean up 5 years ago
.appveyor.yml Fix VS2017 build issues and add Appveyor CI script (#118) 5 years ago
.clang-format First draft: replace libclang indexer with clangIndex 5 years ago
.gitignore . 5 years ago
.gitmodules rapidjson url (#43) 5 years ago
CMakeLists.txt Fix VS2017 build issues and add Appveyor CI script (#118) 5 years ago
LICENSE Add Apache LICENSE file (#121) 5 years ago
README.md Fix broken link in README.md (#101) 5 years ago

README.md

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.

Compared with cquery, it makes use of C++17 features, has less third-party dependencies and slimmed-down code base. It leverages Clang C++ API as clangd does, which provides better support for code completion and diagnostics. Refactoring is a non-goal as it can be provided by clang-include-fixer and other Clang based tools.

The comparison with cquery as noted on 2018-07-15:

cquery ccls
third_party more fewer
C++ C++14 C++17
clang API libclang (C) clang/llvm C++
Filesystem AbsolutePath + custom routines llvm/Support
index libclang clangIndex, some enhancement
pipeline index merge+id remapping simpler and more robust

cquery has system include path detection (through running the compiler driver) while ccls uses clangDriver.

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

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