C / C++ (clangd)

Languageby Tori @gettoriApache-2.0Bundled
Runs your project’s code

C / C++ (clangd) loads code from the project it opens, such as its dependencies or its own configuration. Tori asks before starting it in each project and remembers your answer for that project.

Verified against
clangd 22.1.6Measured Oct 9, 2026
Platforms
macOSNo Linux or Windows support
Install
Tori installs it from a GitHub releaseclangd/clangd · checksum verified
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
clangd
Source file
lsp/clangd.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to LSP.
  3. C / C++ (clangd) is already there: it ships inside Tori. When the catalog has a newer version, Add a language lists it with Update.

Adding writes one file and runs nothing. Downloading the release from clangd/clangd is a separate click; Tori checks its checksum first.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file clangd.toml
~/.config/tori/packs/lsp/

The file

clangd.tomlRead only
1# C, C++ and Objective-C via clangd. Xcode's command line tools ship one at2# /usr/bin/clangd, which wins over Tori's copy. See LSP-SERVERS.md.34schema_version = 15id = "clangd"6label = "C / C++ (clangd)"7description = "C and C++, through clangd"8license = "Apache-2.0"9contributor = { name = "Tori", github = "gettori" }10verified_against = "clangd 22.1.6"11verified_on = "2026-10-09"12root_markers = ["compile_commands.json", "compile_flags.txt", ".clangd", ".git"]13request_timeout_ms = 300001415# Compile flags come from the project, and a flag can load a compiler plugin.16runs_project_code = true1718[languages]19c = "c"20h = "c"21cc = "cpp"22cpp = "cpp"23cxx = "cpp"24hh = "cpp"25hpp = "cpp"26hxx = "cpp"27m = "objective-c"28mm = "objective-cpp"2930[launch]31kind = "managed"32runtime = "native"33program = "clangd"34args = []3536# One universal build for both architectures.37[install]38kind = "github_release"39repo = "clangd/clangd"40version = "22.1.6"4142[install.assets.macos-aarch64]43file = "clangd-mac-22.1.6.zip"44sha256 = "631aef462556cbd74e0ebaae1778a38d1997d0ba3371652ca54f82652a179e7d"45bin = "clangd_22.1.6/bin/clangd"4647[install.assets.macos-x86_64]48file = "clangd-mac-22.1.6.zip"49sha256 = "631aef462556cbd74e0ebaae1778a38d1997d0ba3371652ca54f82652a179e7d"50bin = "clangd_22.1.6/bin/clangd"