cppcheck --rule="printf" myfile.cpp 这将会检查myfile.cpp文件中所有的printf函数调用。 --rule-file选项允许你从一个文件中读取规则。这个文件应该包含一个或多个规则,每个规则一行。例如,如果你有一个名为rules.txt的文件,其中包含以下规则: printf scanf 你可以使用以下命令应用这些规则: cppcheck --rule-...
cppcheck --rule="printf" myfile.cpp 1. 这将会检查myfile.cpp文件中所有的printf函数调用。 –rule-file选项允许你从一个文件中读取规则。这个文件应该包含一个或多个规则,每个规则一行。例如,如果你有一个名为rules.txt的文件,其中包含以下规则: printf scanf 1. 2. 你可以使用以下命令应用这些规则: cppche...
rules 初始化。 3年前 snap 初始化。 3年前 tools 初始化。 3年前 valgrind 初始化。 3年前 win_installer 初始化。 3年前 .clang-tidy 初始化。 3年前 .codacy.yml 初始化。 3年前 .gitignore 1、代码优化。 3年前 .mailmap 初始化。
If you want to use --rule and --rule-file then dependencies are needed: g++ -o cppcheck -std=c++11 -lpcre -DHAVE_RULES -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml2 cli/*.cpp lib/*.cpp externals/simplecpp/simplecpp.cpp externals/tinyxml2/*.cpp MinGW mingw32-make If...
Misra 17.3 checks finds implicit function calls (#7327) 11天前 cfg Fix #13839 (False positive: warning about readdir, and readdir_r is de… 11天前 cli Fix #13751 (cmdlineparser: --file-filter matching of looked up files i… 11天前 ...
If you want to use--ruleand--rule-filethen dependencies are needed: g++ -o cppcheck -std=c++11 -lpcre -DHAVE_RULES -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml2 cli/*.cpp lib/*.cpp externals/simplecpp/simplecpp.cpp externals/tinyxml2/*.cpp ...
If you want to use--ruleand--rule-filethen dependencies are needed: g++ -o cppcheck -std=c++11 -lpcre -DHAVE_RULES -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml2 cli/*.cpp lib/*.cpp externals/simplecpp/simplecpp.cpp externals/tinyxml2/*.cpp ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
If you want to use --rule and --rule-file then dependencies are needed: g++ -o cppcheck -std=c++11 -lpcre -DHAVE_RULES -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml2 cli/*.cpp lib/*.cpp externals/simplecpp/simplecpp.cpp externals/tinyxml2/*.cpp MinGW mingw32-make ...
manual: add description about namingng. if misra is needed then cppche… 2天前 oss-fuzz passSettingsas reference intoTokenList(#7401) 3天前 platforms made platforms file validation stricter / added missingboolelements (#4747) 2年前 rules ...