cppcheck

A static analysis tool for C/C++ code. Instead of syntax…

cppcheck

A static analysis tool for C/C++ code. Instead of syntax errors, it focuses on the types of bugs that compilers normally do not detect.

cppcheck . 2> cppcheck.log

cppcheck --quiet {{path/to/folder}}

cppcheck --enable={{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}

cppcheck --errorlist | grep "{{search pattern}}"

cppcheck --suppress={{test_id1}} --suppress={{test_id2}} {{path/to/file.cpp}}

cppcheck -I {{include/folder_1}} -I {{include/folder_2}} .

cppcheck --project={{path/to/project.sln}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← cpio cppclean →