Differences between revisions 9 and 10
Revision 9 as of 2016-05-28 19:28:45
Size: 1557
Editor: SamatJain
Comment:
Revision 10 as of 2016-05-28 20:51:10
Size: 1596
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
# Highest severity # Highest severity warnings only (i.e. memory leaks, etc)

Clang-Tidy — Extra Clang Tools 3.9 documentation

Use:

clang-tidy -checks='*' main.cpp -- -std=c++11

ClangFormat: auto-formats C++ code

C++ style guides

Static analysis tools

# Highest severity warnings only (i.e. memory leaks, etc)
cppcheck --enable=all *.cpp
# Everything except style-related linting
cppcheck --enable=warning,performance,portability,information,missingInclude \
         --std=c++11 --library=std.cfg --verbose --quiet \
         *.cpp

Overview articles:

SamatsWiki: CodingStyle/C++ (last edited 2020-09-02 20:49:51 by SamatJain)