@@ -475,7 +475,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
475
475
else if (std::strncmp (argv[i], " --check-level=" , 14 ) == 0 ) {
476
476
Settings::CheckLevel level = Settings::CheckLevel::normal ;
477
477
const std::string level_s (argv[i] + 14 );
478
- if (level_s == " normal" )
478
+ if (level_s == " reduced" )
479
+ level = Settings::CheckLevel::reduced;
480
+ else if (level_s == " normal" )
479
481
level = Settings::CheckLevel::normal ;
480
482
else if (level_s == " exhaustive" )
481
483
level = Settings::CheckLevel::exhaustive;
@@ -915,6 +917,11 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
915
917
return Result::Fail;
916
918
}
917
919
920
+ else if (std::strncmp (argv[i], " --performance-valueflow-max-iterations=" , 39 ) == 0 ) {
921
+ if (!parseNumberArg (argv[i], 39 , mSettings .vfOptions .maxIterations , true ))
922
+ return Result::Fail;
923
+ }
924
+
918
925
// Specify platform
919
926
else if (std::strncmp (argv[i], " --platform=" , 11 ) == 0 ) {
920
927
const std::string platform (11 +argv[i]);
@@ -1475,8 +1482,9 @@ void CmdLineParser::printHelp() const
1475
1482
" --check-config Check cppcheck configuration. The normal code\n "
1476
1483
" analysis is disabled by this flag.\n "
1477
1484
" --check-level=<level>\n "
1478
- " Configure how much checking you want:\n "
1479
- " * normal: Cppcheck uses some compromises in the checking so\n "
1485
+ " Configure how much valueflow analysis you want:\n "
1486
+ " * reduced: Reduce valueflow to finish checking quickly.\n "
1487
+ " * normal: Cppcheck uses some compromises in the analysis so\n "
1480
1488
" the checking will finish in reasonable time.\n "
1481
1489
" * exhaustive: deeper analysis that you choose when you can\n "
1482
1490
" wait.\n "
0 commit comments