| name | cpp-review |
| description | Review C++ code against Google C++ Style Guide. Use when reviewing C++ code, pull requests, or when asked to check code style compliance. |
C++ Code Review (Google Style)
Review C++ code for compliance with the Google C++ Style Guide.
Review Checklist
Naming
Headers
Classes
Functions
Modern C++
Formatting
Feedback Format
Use severity levels:
- 🔴 MUST FIX: Style violations or bugs that must be fixed
- 🟡 SHOULD FIX: Strong recommendations for improvement
- 🟢 CONSIDER: Optional enhancements or suggestions
Example Review Comment
🔴 **MUST FIX**: Missing `explicit` on single-argument constructor
Line 45: `Foo(int value)` should be `explicit Foo(int value)` to prevent
implicit conversions.
🟡 **SHOULD FIX**: Function too long
Lines 78-145: `ProcessData()` is 67 lines. Consider breaking into smaller
functions for readability and testability.
🟢 **CONSIDER**: Use structured bindings
Line 23: `auto [iter, success] = map.insert({key, value});` would be clearer
than separate `.first` and `.second` access.