clice: a C/C++ language server built on Clang
clice is a language server for C, C++, Objective-C and CUDA, built on LLVM/Clang[1]. Like clangd and ccls, it is built on Clang, but its authors redesigned it to solve problems their architecture has left unsolved for years. Compiles run in a pool of isolated worker processes, so a crash on a corner case costs one worker rather than the whole server.
From a compile_commands.json[2] file, clice builds the C++20 modules[3] that a project needs on demand, and a header is compiled in the context of a file that includes it. The same engine is available from the command line, with commands such as `clice index`, `clice query` and `clice refactor`. The `clice lint` command runs clang-tidy[4] over the project's units in a process pool.
The project is written in modern C++ and supports Linux, macOS and Windows on x64 and ARM64. Stable releases are published on the releases page and the VS Code Marketplace, and nightly builds are also available.
Links from the post and discussion
- What is clice? (project documentation) docs.clice.io
- clice releases page github.com
- xclang toolchain used for the build github.com
Sources
-
GitHub Trending
clice-io/clice






