Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

clice-io/clice

Developer Tools

A Clang-based C, C++, Objective-C and CUDA language server with isolated worker processes, C++20 module support and a project-wide CLI.

1,790
102
C++
Apache-2.0
2 years old

Overview

clice is a language server for C, C++, Objective-C and CUDA, built on LLVM/Clang. It targets the same editor experience as clangd and ccls but changes the architecture: compilation runs in a pool of isolated worker processes, so a crash or leak during a bad compile costs one worker instead of the server, and navigation and highlighting stay available. It also handles C++20 named modules and non-self-contained headers that need the context of an including file clice-io/clice.

Beyond the LSP server, the same engine exposes a CLI that works from a persisted on-disk index: indexing, linting with clang-tidy, formatting, resolving compile commands, JSON queries for definitions/references/call graphs, project-wide renames without recompiling, and module analysis and conversion. The project documents its design in What is clice? and explains template and instantiation handling on the README README.

Quick start

  1. Obtain the server. Download a stable binary from the releases page, or build from source following the build guide. Linux, macOS and Windows are supported on x64 and ARM64.

  2. Generate a compilation database. 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 such as build/. Other build systems and databases in non-default locations are covered in the project setup guide.

  3. Configure the editor. VS Code users install the clice extension; Cursor, VSCodium and Windsurf use the Open VSX build; Neovim 0.11+ with nvim-lspconfig enables it with vim.lsp.enable('clice'); Zed loads editors/zed as a local extension. Any other LSP client can point at clice serve.

  4. Open a file from the project. With the compilation database in place, the server resolves the compile command and provides completion, highlighting, navigation and hover. Startup prints the session log directory (<workspace>/.clice/logs/ by default) in the editor's clice output panel, which is where to look if something goes wrong.

For larger projects, running clice index ahead of time builds the persisted index so the editor starts warm; clice lint, clice format, clice query, clice refactor, clice analyze and clice modularize are available from the same binary README.

Requirements and limits

  • A compilation database is the normal requirement; projects without one need extra configuration described in the configuration guide.
  • The compilation database lists module files for C++20 module support; clice scans dependencies and builds required modules on demand.
  • The current release is version 1.0, the first stable release, so bug reports are expected to go through issues. Nightly builds use odd minor versions and are published only when main gains commits; the newest 25 nightlies are kept, none older than 30 days.
  • The project is Apache-2.0 licensed and is built with Bazel; building from source requires that toolchain README.

HotRepo's take

On the C++ daily list dated 2026-11-17, clice recorded 1,749 stars and 101 forks, gaining 118 stars in that period and reaching 7th place on the language list. That is a single snapshot, so it supports only the day's placement rather than a long-term trend. The technical differentiators are concrete rather than marketing: process-isolated compiles, on-demand module building from compile_commands.json, and a CLI that reads the same persisted index for queries, renames and module analysis.

Written by AI from the project's README, updated . The project's own docs are the source of truth.

You might also like

  1. zed-industries/zedA native, GPU-rendered code editor for developers who want fast editing and built-in collaboration on macOS, Linux and Windows.Rust92,332
  2. l0ng-ai/openideaAn IntelliJ-style desktop IDE with Rust core, TypeScript UI, editor, debugger, Git, terminal, database and HTTP clients.TypeScript5,918
  3. eugenioenko/tttA terminal code editor for developers who want IDE-grade editing (LSP, multi-cursor, git) without leaving the shell.Go831
  4. notepad-plus-plus/notepad-plus-plusA free, open-source Windows source code editor and Notepad replacement supporting many programming and natural languages.C++29,803
  5. appdevforall/CodeOnTheGoA mobile IDE for writing and building Android apps directly on an Android phone, without a laptop or Internet connection.Java512