vera++

Programmable tool for static analysis and style checking of C++

brewmacoslinux
Try with needOr install directly
Source

About

Programmable tool for C++ source code

Commands

vera++

Examples

Analyze a single C++ file for style violations$ vera++ myfile.cpp
Check all C++ files in a directory recursively$ vera++ --recursive src/
Run analysis with a specific profile/ruleset$ vera++ --profile default myfile.cpp