cpp-static-analysis
CommunityC/C++ static analysis to catch bugs early.
AuthorRedtropig
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Static analysis catches a large class of bugs in C/C++ code at zero runtime cost, helping you identify defects before they cause failures and regressions.
Core Features & Use Cases
- clang-tidy: incremental checks on changed files using a compile_commands.json project, plus a safe baseline configuration.
- cppcheck: fast, standalone checks for correctness, leaks, and off-by-one issues.
- IWYU: ensures include hygiene by identifying unused or missing includes.
- Prerequisites: a compile_commands.json at project root, tools installed, and a baseline .clang-tidy at root.
- Use Case: after editing a translation unit, run incremental analysis to surface warnings before committing.
Quick Start
Run incremental clang-tidy checks on changed files using the compile_commands.json project and review the resulting warnings.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cpp-static-analysis Download link: https://github.com/Redtropig/harness-anchor/archive/main.zip#cpp-static-analysis Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.