C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Go to file
Will Dietz 63c8800100 Help Clang find bottom of stacks for safety, use desired stack size
noteBottomOfStack:

Without this, checks against stack space within Clang don't work as
Clang doesn't know where the stack begins.

Needed per-thread, as early as possible.
(on threads using Clang)

Using Clang's desired stack size:

Additionally increase stack size of pthreads to Clang's desired size.

This is presently 8MB, and is used by Clang's stack management
mechanisms to check* if close to stack exhaustion when determining if
there's sufficient space (and warn or run on a new thread with more).
(see runWithSufficientStackSpace)

The constant is available in LLVM 7 onwards.

* (abs(cur - bottom) > DesiredStackSize - threshold)
2022-04-01 10:22:05 -05:00
.github Add .github/ISSUE_TEMPLATE 2019-03-01 17:37:37 -08:00
index_tests Fix EnumConstantDecl's kind & EnumDecl's vars 2019-11-09 20:09:13 -08:00
src Help Clang find bottom of stacks for safety, use desired stack size 2022-04-01 10:22:05 -05: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 Delete ci/ and use .gitignore whitelist 2020-03-22 09:50:48 -07:00
.gitmodules rapidjson url (#43) 2019-10-24 01:01:21 -07:00
CMakeLists.txt cmake: Add LANGUAGE C to fix find_package(Clang REQUIRED) error 2021-12-15 10:14:34 -08:00
LICENSE Add Apache LICENSE file (#121) 2019-11-09 20:09:13 -08:00
README.md ccls_lsp 2021-04-05 18:04:57 -07: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.