Skip to content

Commit c6c571b

Browse files
committed
rename fast to reduced
1 parent b1bbdaa commit c6c571b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Diff for: cli/cmdlineparser.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
475475
else if (std::strncmp(argv[i], "--check-level=", 14) == 0) {
476476
Settings::CheckLevel level = Settings::CheckLevel::normal;
477477
const std::string level_s(argv[i] + 14);
478-
if (level_s == "fast")
479-
level = Settings::CheckLevel::fast;
478+
if (level_s == "reduced")
479+
level = Settings::CheckLevel::reduced;
480480
else if (level_s == "normal")
481481
level = Settings::CheckLevel::normal;
482482
else if (level_s == "exhaustive")
@@ -1474,9 +1474,7 @@ void CmdLineParser::printHelp() const
14741474
" analysis is disabled by this flag.\n"
14751475
" --check-level=<level>\n"
14761476
" Configure how much valueflow analysis you want:\n"
1477-
" * fast: All checkers are executed however the valueflow is\n"
1478-
" limited. Our goal is to perform as much valueflow analysis as\n"
1479-
" we can however it should take less time than parsing the file.\n"
1477+
" * reduced: Reduce valueflow to finish checking quickly.\n"
14801478
" * normal: Cppcheck uses some compromises in the analysis so\n"
14811479
" the checking will finish in reasonable time.\n"
14821480
" * exhaustive: deeper analysis that you choose when you can\n"

Diff for: lib/settings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void Settings::loadSummaries()
287287

288288
void Settings::setCheckLevel(CheckLevel level)
289289
{
290-
if (level == CheckLevel::fast) {
290+
if (level == CheckLevel::reduced) {
291291
// Checking should finish quickly.
292292
checkLevel = level;
293293
vfOptions.maxSubFunctionArgs = 8;

Diff for: lib/settings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ class CPPCHECKLIB WARN_UNUSED Settings {
487487
}
488488

489489
enum class CheckLevel {
490-
fast,
490+
reduced,
491491
normal,
492492
exhaustive
493493
};

0 commit comments

Comments
 (0)