CPPCHECK(1) cppcheck User Manual CPPCHECK(1) (NAME) cppcheck - C/C++ (SYNOPSIS) cppcheck [--check-config] [--check-library] [-D] [-U] [--disable=] [--enable=] [--error-exitcode=] [--errorlist] [--exitcode-suppress=] [--exitcode-suppressions=] [--file-list=] [--filesdir] [--force] [--fsigned-char] [--funsigned-char] [--help] [-I] [--includes-file=] [--config-exclude=] [--config-excludes-file=] [--include=] [-i] [--inconclusive] [--inline-suppr] [-j] [-l] [--language=] [--library=] [--max-configs=] [--max-ctu-depth=] [--platform=] [--quiet] [--relative-paths=] [--report-progress] [--report-type=] [--rule=] [--rule-file=] [--showtime=] [--std=] [--suppress=] [--suppressions-list=] [--suppress-xml=<.xml file>] [--template=''] [--verbose] [--version] [--xml] [--xml-version=]] [file or path] ... (DESCRIPTION) Cppcheck C/C++ . (inline assembly) . include . Cppcheck . (OPTIONS) C/C++ . --check-config Cppcheck . . --check-library . -D Cppcheck . -D . -D . : -DDEBUG=1 -D__cplusplus -U Cppcheck . '-U' #ifdef . : '-UDEBUG' --disable= . --enable= . --enable= . : all . --enable=all unusedFunction . warning . style . 'style' 'performance' 'portability' . performance . portability . information . unusedFunction . . missingInclude include . . : --enable=style,unusedFunction. --std . --error-exitcode= 0 . EXIT_FAILURE . 256 0 . --errorlist XML . --exitcode-suppress= . --exitcode-suppressions= . --file-list= . . - . --filesdir FILESDIR . -f, --force . . --max-configs= . --fsigned-char char . --platform . --funsigned-char char . --platform . -h, --help . -I include . -I . . . --includes-file= include . include . . . --config-exclude= () . ( ) . --config-exclude-file= config-exclude. --include= . autoconf.h . -include GCC . -i . -i . . . --inconclusive Cppcheck . (false positives) . . --inline-suppr . : // cppcheck-suppress memleak -j . -l (load average) ( ). --language= cppcheck . : c c++ --library= . --max-configs= . 12 . --force . --max-ctu-depth= (whole program analysis). 2 . --platform= . : unix32 unix unix64 unix win32A Windows ASCII win32W Windows UNICODE win64 Windows Cppcheck . -q, --quiet . -rp, -rp=, --relative-paths;, --relative-paths= . . ';' . . test test/test.cpp test/test.cpp test.cpp . ~ . . --report-progress . --report-type= . : normal cppcheck ) autosar Autosar cert-c-2016 Cert C 2016 cert-cpp-2016 Cert C++ 2016 misra-c-2012 Misra C 2012 misra-c-2023 Misra C 2023 misra-c-2025 Misra C 2025 misra-cpp-2008 Misra C++ 2008 misra-cpp-2023 Misra C++ 2023 --rule= (regular expression) . "/ 0" . cppcheck HAVE_RULES=yes . --rule-file= XML . https://sourceforge.net/projects/cppcheck/files/Articles . cppcheck HAVE_RULES=yes . --showtime= . : none () file file-total summary top5_file top5_summary --std= . : c89 C C89 c99 C C99 c11 C C11 () c++03 C++ C++03 c++11 C++ C++11 c++14 C++ C++14 . c++17 C++ C++17 . c++20 C++ C++20 (). --suppress= . : [error id]:[filename]:[line]. [filename] [line] . [error id] * ( ) . [filename] * ? . --suppressions-list= . . --suppress-xml=<.xml file> xml . --template='' . : '{file}:{line},{severity},{id},{message}' '{file}({line}):({severity}) {message}'. : gcc, vs. -v, --verbose . --version . --xml XML (stderr). --xml-version= XML. --xml . 2 . 2 . (AUTHORS) Daniel Marjamaki Cppcheck . AUTHORS . (SEE ALSO) : https://sourceforge.net/p/cppcheck/wiki/Home (AUTHORS) Reijo Tomperi . (COPYRIGHT) Copyright (C) 2009 - 2016 Reijo Tomperi ( ). / (GNU General Public License) ( ) . /usr/share/common-licenses/GPL-3 . cppcheck 06/23/2026 CPPCHECK(1)