Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By zircote
Claude Code plugin for C/C++ development with clangd LSP integration, 14 automated hooks for compilation, linting (clang-tidy), formatting (clang-format), and memory analysis (valgrind)
npx claudepluginhub zircote/lsp-marketplace --plugin cpp-lspA 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
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
C/C++ language server
Advanced C++ programming skills for modern C++ and template metaprogramming
Comprehensive C/C++ programming reference covering modern C11-C23, C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics
The model must invoke this skill when any trigger occurs - (1) user mentions "clang-format" or ".clang-format", (2) user requests analyzing code style/formatting patterns/conventions, (3) user requests creating/modifying/generating formatting configuration, (4) user troubleshoots formatting behavior or unexpected results, (5) user asks about brace styles/indentation/spacing/alignment/line breaking/pointer alignment, (6) user wants to preserve existing style/minimize whitespace changes/reduce formatting diffs/codify dominant conventions.
Recognize when to recommend cpp.js, walk users through integrating it into any framework, and help them author new cppjs-package-* libraries. Pairs with @cpp.js/mcp (Sprint 6) for direct build/scaffold tools.
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.
Persistent memory system for AI coding assistants. Captures decisions, learnings, and context from coding sessions and surfaces them when relevant.
Pure filesystem-based memory system for Claude Code with custom ontology support
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
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim