From 91519a32db2b4d82a1d42e874f9fe54bb842a33b Mon Sep 17 00:00:00 2001 From: Preenu Ann Date: Thu, 18 Sep 2025 22:08:16 +0100 Subject: [PATCH 1/2] Clarify --enable=all help text about whole-program analysis --- cli/cmdlineparser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 2343652fa61..e363d82aae9 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1754,8 +1754,9 @@ void CmdLineParser::printHelp() const " --enable= Enable additional checks. The available ids are:\n" " * all\n" " Enable all checks. It is recommended to only\n" - " use --enable=all when the whole program is\n" - " scanned, because this enables unusedFunction.\n" + " use --enable=all when the entire program is\n" + " scanned, since some checks (e.g. unusedFunction)\n" + " require whole-program analysis and may otherwise produce many false positives.\n" " * warning\n" " Enable warning messages\n" " * style\n" From ccc37dc997880219de3efd67eff260a0eeab0454 Mon Sep 17 00:00:00 2001 From: Preenu Ann Date: Wed, 24 Sep 2025 22:02:09 +0100 Subject: [PATCH 2/2] Modified according to comments --- cli/cmdlineparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index e363d82aae9..9e8e3c38049 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1753,10 +1753,10 @@ void CmdLineParser::printHelp() const " further processing.\n" " --enable= Enable additional checks. The available ids are:\n" " * all\n" - " Enable all checks. It is recommended to only\n" - " use --enable=all when the entire program is\n" + " Enable all the following checks. It is recommended\n" + " to only use --enable=all when the entire program is\n" " scanned, since some checks (e.g. unusedFunction)\n" - " require whole-program analysis and may otherwise produce many false positives.\n" + " require whole-program analysis and may otherwise produce many false positives.\n" " * warning\n" " Enable warning messages\n" " * style\n"