By zircote
Set up a clangd LSP environment for C/C++ with automated compilation, linting, formatting, and memory analysis hooks, providing code intelligence like diagnostics, go-to-definition, and completions.
A Claude Code plugin providing comprehensive C/C++ development support through:
# Run the setup command (after installing the plugin)
/setup
Or manually:
# macOS (Homebrew)
brew install llvm
# The clangd binary is included with LLVM
# Ensure /opt/homebrew/opt/llvm/bin is in your PATH
The plugin configures clangd for Claude Code via .lsp.json:
{
"cpp": {
"command": "clangd",
"args": [],
"extensionToLanguage": {
".c": "c", ".h": "c",
".cpp": "cpp", ".cc": "cpp", ".cxx": "cpp",
".hpp": "cpp", ".hxx": "cpp", ".hh": "cpp"
},
"transport": "stdio"
}
}
Capabilities:
| Hook | Trigger | Description |
|---|---|---|
cpp-format-on-edit | **/*.cpp,c,h,hpp | Auto-format with clang-format |
cpp-tidy-on-edit | **/*.cpp,c | Lint with clang-tidy |
cpp-compile-check | **/*.cpp,c | Compile check with clang/gcc |
cpp-cppcheck | **/*.cpp,c | Static analysis with cppcheck |
| Tool | Installation | Purpose |
|---|---|---|
clangd | brew install llvm | LSP server |
clang-format | Included with LLVM | Formatting |
clang-tidy | Included with LLVM | Linting |
cppcheck | brew install cppcheck | Static analysis |
Create a .clang-format file in your project root:
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 100
Create a .clang-tidy file:
Checks: 'clang-analyzer-*,modernize-*,performance-*,bugprone-*'
cpp-lsp/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── .lsp.json # clangd configuration
├── commands/
│ └── setup.md # /setup command
├── hooks/
│ └── scripts/
│ └── cpp-hooks.sh
├── tests/
│ └── sample_test.cpp # Test file
├── CLAUDE.md # Project instructions
└── README.md # This file
Create compile_commands.json using:
# CMake
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
# Bear (for Make projects)
bear -- make
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub zircote/lsp-marketplace --plugin cpp-lspPersistent memory system for AI coding assistants. Captures decisions, learnings, and context from coding sessions and surfaces them when relevant.
Rust language server
Comprehensive agent library featuring 115+ specialized Opus 4.5 agents organized by domain
Detect AI-generated writing patterns and build authentic voice profiles through adaptive interviews and computational stylistics
Claude Code plugin for C# development with OmniSharp LSP integration, 12 automated hooks for .NET builds, linting, formatting, and testing (xUnit, NUnit)
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Comprehensive GreyCat development skill for graph-based language with built-in persistence. Covers data modeling, API development, parallel processing, frontend integration, and all standard libraries.
TypeScript/JavaScript full-stack development with NestJS, React, and React Native
Comprehensive Java development toolkit with Spring Boot, testing, LangChain4J, and AWS integration
SAP Cloud Application Programming Model (CAP) development skill using Capire documentation. Use when: building CAP applications, defining CDS models, implementing services, working with SAP HANA/SQLite/PostgreSQL databases, deploying to SAP BTP Cloud Foundry or Kyma, implementing Fiori UIs, handling authorization, multitenancy, or messaging. Covers CDL/CQL/CSN syntax, Node.js and Java runtimes, event handlers, OData services, and CAP plugins.