基于 LLVM/Clang 的 C/C++ language server,同时覆盖 Objective-C 与 CUDA。与 clangd、ccls 同源,但进程模型是重做的:编译被放进一组隔离的 worker 进程池里运行,思路接近现代浏览器的多进程架构。某个 worker 遇到半成品代码或边缘用例而崩溃、泄漏时,损失的是这一个 worker,导航与高亮仍可继续,内存与编译记录也不会被一起带走。C++20 modules 与 compilation contexts 属于开箱支持范围,省去手工配置。配套 CLI 面向整个项目,可做索引、查询和重构,把编辑器之外的批量操作接住。作者用一篇 v1.0 发布说明交代了设计由来。以 Apache-2.0 许可发布,适合大型 C++ 工程的工具链维护者,以及想要不易被崩溃打断的编辑体验的开发者。

A C/C++ language server written in modern C++, and more than a language server. Like clangd and ccls it is built on LLVM/Clang, but it is redesigned from the ground up to solve the problems their architecture has left unsolved for years. See What is clice?
The story behind clice and how it was built: clice v1.0 Released: Welcome to Modern C++.
compile_commands.json listing the module files: clice scans the dependencies and builds the modules needed on demand, whatever the build system or compiler, with completion, highlighting, navigation and hover on modules. PCHs and PCMs are cached on disk and reused across sessions.auto parameter of a lambda passed to a ranges call. A template is a duck-typed interface and each instantiation one of its implementations: go to implementation, references and the call hierarchy on a dependent call list what each instantiation calls.compile_commands.json: clice detects the environment of 50+ toolchains, nvcc, MSYS2, Cygwin and zig cc among them, and reconciles the compiler actually used with Clang, with no flags to add by hand.The same engine answers from the command line:
clice index builds the project's persisted index ahead of time, resumably, so an editor starts warm.clice lint runs clang-tidy over the project's units in a process pool and reports a shared header's findings once; with --index the same parse builds the index.clice format formats the files the configuration and the compilation database name, in parallel, with clang-format.clice command shows the command a file actually compiles with after the rules and the toolchain query, or converts a compile_commands.json into resolved -cc1 commands for other Clang tools.clice query reads the index on disk, no server needed, and answers in JSON: definitions, references, call graphs, type hierarchies, file dependencies.clice refactor rewrites the sources from the persisted index without compiling: symbol and macro renames over the whole project, or a batch of them with --spec.clice analyze reports the project's structure as JSON from the index, such as analyze modules: the module dependencies and cycles between directories, and the code standing in the way of modules.clice modularize wraps the third-party libraries a project uses as C++20 modules without touching a source file, or rewrites the project's own code into module units along analyze's split: headers become partitions, #includes become imports. clice's own modules were made with it.import std, self-hosted: clice modularize generates the module wrappers of the third-party libraries, and clice serves its own codebase.std::format, std::expected, std::ranges and std::views.Download the latest binary from the releases page, or build from source.
Platforms: Linux (x64, ARM64), macOS (x64, ARM64), Windows (x64, ARM64)
Release channels:
| Channel | Version | Where to get it |
|---|---|---|
| Stable | even minor, e.g. v1.0.0 |
releases page + VS Code Marketplace + Open VSX |
| Nightly | odd minor, e.g. v1.1.2026112002 |
GitHub pre-releases + Marketplace and Open VSX pre-release channel (Switch to Pre-Release Version on the extension page) |
| Per-commit | untagged | artifacts on the latest green main CI runs |
The versioning rule is the VS Code Marketplace convention: even minor = stable, odd minor = pre-release. Nightly patch numbers encode the UTC build time as YYYYMMDDHH (year, month, day, hour — e.g. 2026071902 is 2026-07-19 02:00 UTC), so newer is always higher; a nightly is published only when main gained commits, and only the newest 25 nightlies, none older than 30 days, are kept, besides the one Neovim's Mason registry installs. Every published binary is the exact one that passed the full test suites — releases promote CI builds rather than rebuilding.
For the freshest bits, every green main CI run attaches installable artifacts (binaries and platform vsix) to its run page, so a fix can be tried the moment it merges (GitHub login required for artifact downloads).
Each release also ships *.symbols packages: if clice crashes, attach the newest server log to an issue and the matching symbols let us reconstruct the exact stack. The log location is printed at startup in your editor's clice output panel (Session log directory: — by default under <workspace>/.clice/logs/).
| Editor | Setup |
|---|---|
| VS Code | Install the clice extension from the Marketplace |
| Cursor, VSCodium, Windsurf | Install the clice extension from Open VSX |
| Neovim | With nvim-lspconfig on Neovim 0.11 or later: vim.lsp.enable('clice') |
| Zed | Load editors/zed as a local extension |
| Other | Any LSP client works — point it at clice serve |
clice reads a compilation database to understand your project. For CMake:
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
By default clice loads every compile_commands.json in the project root and its immediate subdirectories (e.g. build/). See project setup for other build systems, and the configuration guide for databases elsewhere and files without one.
[!NOTE] clice 1.0 is its first stable release. Bug reports via issues are welcome.
Full docs at docs.clice.io/clice: the guide and configuration, every language feature and command, and the design.
See building from source or join our Discord.
bazel build //:dist # clice and the unit tests
pixi run test # the unit tests and the cases
| 日期 | 榜单 | 排名 | 周期新增 | 总 STAR |
|---|