Size: 1557
Comment:
|
Size: 1596
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
Git hook running clang-format. Don't use this!
C++ style guides
Static analysis tools
Clang Static Analyzer: sets CC and CXX to use alternate compiler to do analysis
# 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: