# C/C++ LSP (clangd)

> Connects Claude Code to the clangd C/C++ language server for code intelligence, diagnostics and formatting. Install LLVM/clangd and add it to PATH first. Official Anthropic plugin.

- Type: Plugin
- Repository: https://github.com/anthropics/claude-plugins-official/tree/main/plugins/clangd-lsp
- Page: https://hebbmind.com/ru/plugin/clangd-lsp
- Stars: 40098
- Professions: [Backend](https://hebbmind.com/ru/tools.md?profession=backend), [Mobile & desktop](https://hebbmind.com/ru/tools.md?profession=mobile), [Game development](https://hebbmind.com/ru/tools.md?profession=gamedev)
- Tags: code-quality, ide-integration, c, cpp, clangd, llvm, lsp, anthropic
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
claude plugin install clangd-lsp@claude-plugins-official
```

## README

> The content below comes from the upstream repository https://github.com/anthropics/claude-plugins-official/tree/main/plugins/clangd-lsp . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# clangd-lsp

C/C++ language server (clangd) for Claude Code, providing code intelligence, diagnostics, and formatting.

## Supported Extensions
`.c`, `.h`, `.cpp`, `.cc`, `.cxx`, `.hpp`, `.hxx`, `.C`, `.H`

## Installation

### Via Homebrew (macOS)
```bash
brew install llvm
# Add to PATH: export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
```

### Via package manager (Linux)
```bash
# Ubuntu/Debian
sudo apt install clangd

# Fedora
sudo dnf install clang-tools-extra

# Arch Linux
sudo pacman -S clang
```

### Windows
Download from [LLVM releases](https://github.com/llvm/llvm-project/releases) or install via:
```bash
winget install LLVM.LLVM
```

## More Information
- [clangd Website](https://clangd.llvm.org/)
- [Getting Started Guide](https://clangd.llvm.org/installation)

