@@ -254,6 +254,14 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
254254 else if (std::strcmp (argv[i], " --check-config" ) == 0 )
255255 mSettings .checkConfiguration = true ;
256256
257+ // Check code exhaustively
258+ else if (std::strcmp (argv[i], " --check-level=exhaustive" ) == 0 )
259+ mSettings .setCheckLevelExhaustive ();
260+
261+ // Check code with normal analysis
262+ else if (std::strcmp (argv[i], " --check-level=normal" ) == 0 )
263+ mSettings .setCheckLevelNormal ();
264+
257265 // Check library definitions
258266 else if (std::strcmp (argv[i], " --check-library" ) == 0 ) {
259267 mSettings .checkLibrary = true ;
@@ -1092,6 +1100,13 @@ void CmdLineParser::printHelp()
10921100 " execute clang/clang-tidy/addons.\n "
10931101 " --check-config Check cppcheck configuration. The normal code\n "
10941102 " analysis is disabled by this flag.\n "
1103+ " --check-level=<level>\n "
1104+ " Configure how much checking you want:\n "
1105+ " * normal: Cppcheck uses some compromises in the checking so\n "
1106+ " the checking will finish in reasonable time.\n "
1107+ " * exhaustive: deeper analysis that you choose when you can\n "
1108+ " wait.\n "
1109+ " The default choice is 'normal'.\n "
10951110 " --check-library Show information messages when library files have\n "
10961111 " incomplete info.\n "
10971112 " --clang=<path> Experimental: Use Clang parser instead of the builtin Cppcheck\n "
@@ -1214,12 +1229,6 @@ void CmdLineParser::printHelp()
12141229 " is 2. A larger value will mean more errors can be found\n "
12151230 " but also means the analysis will be slower.\n "
12161231 " --output-file=<file> Write results to file, rather than standard error.\n "
1217- " --performance-valueflow-max-if-count=<limit>\n "
1218- " If you have many conditional scopes in a function then\n "
1219- " the number of possible control flow paths through that\n "
1220- " function explodes and that can lead to very long analysis\n "
1221- " time. Valueflow is limited in functions that have more\n "
1222- " than <limit> conditional scopes.\n "
12231232 " --platform=<type>, --platform=<file>\n "
12241233 " Specifies platform specific types and sizes. The\n "
12251234 " available builtin platforms are:\n "
0 commit comments