clangd-lsp Plugin
Plugin Claude Code Development Code Search & Code IntelligenceThe explanation below is AI-generated. Please verify it against the sources.
clangd-lsp is a Claude Code plugin that integrates the clangd C/C++ language server to provide code intelligence, diagnostics, and formatting for C/C++ source files. According to the README, it supports file extensions including .c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, and .H. Installation methods differ by platform: Homebrew on macOS, native package managers (apt, dnf, pacman) on Linux, and winget or direct LLVM release downloads on Windows. The README also links to the official clangd website and its Getting Started guide for further reference. No information about the plugin's homepage is provided in the source.
Overview
clangd-lsp is a plugin for Claude Code that wraps the clangd language server, an existing C/C++ tooling project from the LLVM ecosystem, to bring code intelligence features into the Claude Code environment.
What you can do with clangd-lsp
- Get code intelligence (per the README) for C/C++ files
- Receive diagnostics for supported file types (.c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, .H)
- Use formatting features provided by clangd
- Install clangd via Homebrew on macOS
- Install clangd via apt, dnf, or pacman on Linux
- Install clangd via winget or LLVM release downloads on Windows
- Reference the official clangd website and Getting Started guide for more information
Sources
Original description (English)
C/C++ language server (clangd) for code intelligence
History of clangd-lsp
- Plugin Added clangd-lsp