Expand description
Lexical style-guide adherence analysis for C and C++ source files.
The analyser scans each file character-by-character and tallies observable style signals: indentation type/width, brace placement, pointer-declarator alignment, control-flow spacing, and line-length compliance. These raw counts are then scored against five well-known style guides (LLVM, Google, Mozilla, Microsoft, WebKit) to produce per-file adherence percentages.
All analysis is purely lexical — no AST is built — so results are approximate. The intent is to give a quick directional signal, not an exact conformance report.
Structs§
- CppStyle
Analysis - Full lexical style analysis result for a single C/C++ file.
- Style
Guide Score - Adherence percentage for one named style guide.
Enums§
- Brace
Style - Detected opening-brace placement style.
- Indent
Style - Detected leading-whitespace style.
- Pointer
Style - Detected pointer / reference declarator alignment.
Functions§
- analyze_
cpp_ style - Analyse
textfor C/C++ coding-style signals and return a scored result.