cpplint

Static code checker for C++ that enforces Google's C++ style guide

brewmacoslinux
Try with needOr install directly
Source

About

Static code checker for C++

Commands

cpplint

Examples

Check a single C++ file for style violations$ cpplint myfile.cpp
Check all C++ files in a directory recursively$ cpplint --recursive src/
Check file with custom filter to exclude specific checks$ cpplint --filter=-build/include_subdir myfile.cpp