From 30131837b536ac3c6aef2e680de3bec4ad5c79d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 9 Mar 2023 20:04:20 +0100 Subject: [PATCH] refs #11603 - deprecated `--enable=information` implicitly enabling `missingInclude` (#4865) --- cli/cmdlineparser.cpp | 4 ++++ lib/settings.cpp | 1 - releasenotes.txt | 3 ++- test/CMakeLists.txt | 3 ++- test/cfg/boost.cpp | 2 +- test/cfg/bsd.c | 2 +- test/cfg/cairo.c | 2 +- test/cfg/cppunit.cpp | 2 +- test/cfg/gnu.c | 2 +- test/cfg/googletest.cpp | 2 +- test/cfg/gtk.c | 2 +- test/cfg/kde.cpp | 2 +- test/cfg/libcurl.c | 2 +- test/cfg/libsigc++.cpp | 2 +- test/cfg/lua.c | 2 +- test/cfg/opencv2.cpp | 2 +- test/cfg/openmp.c | 2 +- test/cfg/openssl.c | 2 +- test/cfg/posix.c | 2 +- test/cfg/python.c | 2 +- test/cfg/qt.cpp | 2 +- test/cfg/runtests.sh | 3 ++- test/cfg/sqlite3.c | 2 +- test/cfg/std.c | 2 +- test/cfg/std.cpp | 2 +- test/cfg/windows.cpp | 2 +- test/cfg/wxwidgets.cpp | 2 +- test/testcmdlineparser.cpp | 33 +++++++++++++++++++++++++++++++++ tools/donate_cpu_lib.py | 5 +++-- 29 files changed, 68 insertions(+), 28 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 2375a24f0..9ec984f5d 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -350,6 +350,10 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) mSettings.addEnabled("performance"); mSettings.addEnabled("portability"); } + if (enable_arg.find("information") != std::string::npos) { + mSettings->addEnabled("missingInclude"); + printMessage("'--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it."); + } } // print all possible error messages.. diff --git a/lib/settings.cpp b/lib/settings.cpp index 70d09a769..bbbeb82e0 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -155,7 +155,6 @@ std::string Settings::parseEnabled(const std::string &str, std::tuple 1 and processes are used in the backend (default in non-Windows binaries) -- "missingInclude" and "missingIncludeSystem" will now cause the "--error-exitcode" to be applied \ No newline at end of file +- "missingInclude" and "missingIncludeSystem" will now cause the "--error-exitcode" to be applied +- "--enable=information" will no longer implicitly enable "missingInclude" starting with 2.16. Please enable it explicitly if you require it. \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f057639eb..bc43cd87d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -109,6 +109,7 @@ if (BUILD_TESTS) endif() if ("cfg-${TEST_NAME}" IN_LIST SKIP_TESTS) else() + # TODO: remove missingInclude disabling when it no longer is implied by --enable=information # TODO: add syntax check add_test(NAME cfg-${TEST_NAME} COMMAND $ @@ -119,7 +120,7 @@ if (BUILD_TESTS) --inconclusive --force --error-exitcode=1 - --suppress=missingIncludeSystem + --disable=missingInclude --inline-suppr ${CMAKE_CURRENT_SOURCE_DIR}/cfg/${CFG_TEST} ) diff --git a/test/cfg/boost.cpp b/test/cfg/boost.cpp index 16ea4f634..25ef4ceeb 100644 --- a/test/cfg/boost.cpp +++ b/test/cfg/boost.cpp @@ -2,7 +2,7 @@ // Test library configuration for boost.cfg // // Usage: -// $ cppcheck --check-library --library=boost --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/boost.cpp +// $ cppcheck --check-library --library=boost --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/boost.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/bsd.c b/test/cfg/bsd.c index 70a3dfc57..3c8d2e688 100644 --- a/test/cfg/bsd.c +++ b/test/cfg/bsd.c @@ -1,7 +1,7 @@ // Test library configuration for bsd.cfg // // Usage: -// $ cppcheck --check-library --library=bsd --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/bsd.c +// $ cppcheck --check-library --library=bsd --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/bsd.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/cairo.c b/test/cfg/cairo.c index bb5dc5b77..c544a4548 100644 --- a/test/cfg/cairo.c +++ b/test/cfg/cairo.c @@ -2,7 +2,7 @@ // Test library configuration for cairo.cfg // // Usage: -// $ cppcheck --check-library --library=cairo --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/cairo.c +// $ cppcheck --check-library --library=cairo --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/cairo.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/cppunit.cpp b/test/cfg/cppunit.cpp index 80a97e74e..28b7fa7a8 100644 --- a/test/cfg/cppunit.cpp +++ b/test/cfg/cppunit.cpp @@ -1,7 +1,7 @@ // Test library configuration for cppunit.cfg // // Usage: -// $ cppcheck --check-library --library=cppunit --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/cppunit.cpp +// $ cppcheck --check-library --library=cppunit --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/cppunit.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c index 279c33086..2ca230a90 100644 --- a/test/cfg/gnu.c +++ b/test/cfg/gnu.c @@ -2,7 +2,7 @@ // Test library configuration for gnu.cfg // // Usage: -// $ cppcheck --check-library --library=gnu --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/gnu.c +// $ cppcheck --check-library --library=gnu --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/gnu.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/googletest.cpp b/test/cfg/googletest.cpp index cbe9c9ec9..9ad2c43da 100644 --- a/test/cfg/googletest.cpp +++ b/test/cfg/googletest.cpp @@ -2,7 +2,7 @@ // Test library configuration for googletest.cfg // // Usage: -// $ cppcheck --check-library --library=googletest --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/googletest.cpp +// $ cppcheck --check-library --library=googletest --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/googletest.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/gtk.c b/test/cfg/gtk.c index aba039424..11b028f91 100644 --- a/test/cfg/gtk.c +++ b/test/cfg/gtk.c @@ -2,7 +2,7 @@ // Test library configuration for gtk.cfg // // Usage: -// $ cppcheck --check-library --library=gtk --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr --library=gtk test/cfg/gtk.cpp +// $ cppcheck --check-library --library=gtk --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr --library=gtk test/cfg/gtk.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/kde.cpp b/test/cfg/kde.cpp index f71bea65f..0a8546fb1 100644 --- a/test/cfg/kde.cpp +++ b/test/cfg/kde.cpp @@ -2,7 +2,7 @@ // Test library configuration for kde.cfg // // Usage: -// $ cppcheck --check-library --library=kde --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/kde.cpp +// $ cppcheck --check-library --library=kde --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/kde.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/libcurl.c b/test/cfg/libcurl.c index 8afefc7c5..cb6b5775b 100644 --- a/test/cfg/libcurl.c +++ b/test/cfg/libcurl.c @@ -2,7 +2,7 @@ // Test library configuration for libcurl.cfg // // Usage: -// $ cppcheck --check-library --library=libcurl --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/libcurl.c +// $ cppcheck --check-library --library=libcurl --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/libcurl.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/libsigc++.cpp b/test/cfg/libsigc++.cpp index d59bcbd99..031f2dfa0 100644 --- a/test/cfg/libsigc++.cpp +++ b/test/cfg/libsigc++.cpp @@ -2,7 +2,7 @@ // Test library configuration for libsigc++.cfg // // Usage: -// $ cppcheck --check-library --library=libsigc++ --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/libsigc++.cpp +// $ cppcheck --check-library --library=libsigc++ --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/libsigc++.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/lua.c b/test/cfg/lua.c index 81a983af4..de222d55c 100644 --- a/test/cfg/lua.c +++ b/test/cfg/lua.c @@ -2,7 +2,7 @@ // Test library configuration for lua.cfg // // Usage: -// $ cppcheck --check-library --library=lua --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/lua.c +// $ cppcheck --check-library --library=lua --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/lua.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/opencv2.cpp b/test/cfg/opencv2.cpp index ae6f63103..3dbbeebee 100644 --- a/test/cfg/opencv2.cpp +++ b/test/cfg/opencv2.cpp @@ -2,7 +2,7 @@ // Test library configuration for opencv2.cfg // // Usage: -// $ cppcheck --check-library --library=opencv2 --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/opencv2.cpp +// $ cppcheck --check-library --library=opencv2 --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/opencv2.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/openmp.c b/test/cfg/openmp.c index b3f338160..3f747fc28 100644 --- a/test/cfg/openmp.c +++ b/test/cfg/openmp.c @@ -2,7 +2,7 @@ // Test library configuration for openmp.cfg // // Usage: -// $ cppcheck --check-library --library=openmp --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/openmp.c +// $ cppcheck --check-library --library=openmp --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/openmp.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/openssl.c b/test/cfg/openssl.c index 9a0fbe35e..9c12cd371 100644 --- a/test/cfg/openssl.c +++ b/test/cfg/openssl.c @@ -2,7 +2,7 @@ // Test library configuration for openssl.cfg // // Usage: -// $ cppcheck --check-library --library=openssl --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/openssl.c +// $ cppcheck --check-library --library=openssl --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/openssl.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 1dd67da21..61d7c3cf0 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -2,7 +2,7 @@ // Test library configuration for posix.cfg // // Usage: -// $ cppcheck --check-library --library=posix --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/posix.c +// $ cppcheck --check-library --library=posix --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/posix.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/python.c b/test/cfg/python.c index f1baefa47..266f6d9fa 100644 --- a/test/cfg/python.c +++ b/test/cfg/python.c @@ -2,7 +2,7 @@ // Test library configuration for python.cfg // // Usage: -// $ cppcheck --check-library --library=python --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/python.c +// $ cppcheck --check-library --library=python --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/python.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 4e8212a8f..da3735018 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -2,7 +2,7 @@ // Test library configuration for qt.cfg // // Usage: -// $ cppcheck --check-library --library=qt --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/qt.cpp +// $ cppcheck --check-library --library=qt --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/qt.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index 0b40098d5..30563dc99 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -22,8 +22,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/ CPPCHECK="$DIR"../../cppcheck CFG="$DIR"../../cfg/ +# TODO: remove missingInclude disabling when it no longer is implied by --enable=information # Cppcheck options -CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --suppress=missingIncludeSystem --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}"' +CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --disable=missingInclude --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}"' # Compiler settings CXX=g++ diff --git a/test/cfg/sqlite3.c b/test/cfg/sqlite3.c index 236ea9f33..ac4ed1d69 100644 --- a/test/cfg/sqlite3.c +++ b/test/cfg/sqlite3.c @@ -2,7 +2,7 @@ // Test library configuration for sqlite3.cfg // // Usage: -// $ cppcheck --check-library --library=sqlite3 --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/sqlite3.c +// $ cppcheck --check-library --library=sqlite3 --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/sqlite3.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/std.c b/test/cfg/std.c index 78442a8be..958d99aa3 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -2,7 +2,7 @@ // Test library configuration for std.cfg // // Usage: -// $ cppcheck --check-library --library=std --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/std.c +// $ cppcheck --check-library --library=std --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/std.c // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index a8e8bd842..f29c40234 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -2,7 +2,7 @@ // Test library configuration for std.cfg // // Usage: -// $ cppcheck --check-library --library=std --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/std.cpp +// $ cppcheck --check-library --library=std --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/std.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index e9b97c6ad..b1d8da82e 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -2,7 +2,7 @@ // Test library configuration for windows.cfg // // Usage: -// $ cppcheck --check-library --library=windows --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/windows.cpp +// $ cppcheck --check-library --library=windows --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/windows.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 265d2180f..1808377a4 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -2,7 +2,7 @@ // Test library configuration for wxwidgets.cfg // // Usage: -// $ ./cppcheck --check-library --library=wxwidgets --enable=style,information --inconclusive --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/wxwidgets.cpp +// $ ./cppcheck --check-library --library=wxwidgets --enable=style,information --inconclusive --error-exitcode=1 --disable=missingInclude --inline-suppr test/cfg/wxwidgets.cpp // => // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index d8aeff0f5..367766940 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -93,6 +93,7 @@ private: TEST_CASE(enabledStyle); TEST_CASE(enabledPerformance); TEST_CASE(enabledPortability); + TEST_CASE(enabledInformation); TEST_CASE(enabledUnusedFunction); TEST_CASE(enabledMissingInclude); #ifdef CHECK_INTERNAL @@ -105,6 +106,8 @@ private: TEST_CASE(disableAll); TEST_CASE(disableMultiple); TEST_CASE(disableStylePartial); + TEST_CASE(disableInformationPartial); + TEST_CASE(disableInformationPartial2); TEST_CASE(disableInvalid); TEST_CASE(disableError); TEST_CASE(disableEmpty); @@ -637,6 +640,16 @@ private: ASSERT_EQUALS("", GET_REDIRECT_OUTPUT); } + void enabledInformation() { + REDIRECT; + const char * const argv[] = {"cppcheck", "--enable=information", "file.cpp"}; + settings = Settings(); + ASSERT(defParser.parseFromArgs(3, argv)); + ASSERT(settings.severity.isEnabled(Severity::information)); + ASSERT(settings.checks.isEnabled(Checks::missingInclude)); + ASSERT_EQUALS("cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it.\n", GET_REDIRECT_OUTPUT); + } + void enabledUnusedFunction() { REDIRECT; const char * const argv[] = {"cppcheck", "--enable=unusedFunction", "file.cpp"}; @@ -759,6 +772,26 @@ private: ASSERT_EQUALS("", GET_REDIRECT_OUTPUT); } + void disableInformationPartial() { + REDIRECT; + const char * const argv[] = {"cppcheck", "--enable=information", "--disable=missingInclude", "file.cpp"}; + settings = Settings(); + ASSERT(defParser.parseFromArgs(4, argv)); + ASSERT(settings.severity.isEnabled(Severity::information)); + ASSERT(!settings.checks.isEnabled(Checks::missingInclude)); + ASSERT_EQUALS("cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it.\n", GET_REDIRECT_OUTPUT); + } + + void disableInformationPartial2() { + REDIRECT; + const char * const argv[] = {"cppcheck", "--enable=missingInclude", "--disable=information", "file.cpp"}; + settings = Settings(); + ASSERT(defParser.parseFromArgs(4, argv)); + ASSERT(!settings.severity.isEnabled(Severity::information)); + ASSERT(settings.checks.isEnabled(Checks::missingInclude)); + ASSERT_EQUALS("", GET_REDIRECT_OUTPUT); + } + void disableInvalid() { REDIRECT; const char * const argv[] = {"cppcheck", "--disable=leaks", "file.cpp"}; diff --git a/tools/donate_cpu_lib.py b/tools/donate_cpu_lib.py index 148f9f22f..cb6fe0790 100644 --- a/tools/donate_cpu_lib.py +++ b/tools/donate_cpu_lib.py @@ -15,7 +15,7 @@ import shlex # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.3.44" +CLIENT_VERSION = "1.3.45" # Timeout for analysis with Cppcheck in seconds CPPCHECK_TIMEOUT = 30 * 60 @@ -439,8 +439,9 @@ def scan_package(cppcheck_path, source_path, libraries, capture_callstack=True): dir_to_scan = source_path + # TODO: remove missingInclude disabling when it no longer is implied by --enable=information # Reference for GNU C: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html - options = libs + ' --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --suppress=unmatchedSuppression --template=daca2' + options = libs + ' --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2' options += ' --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar' options += ' -D__GNUC__ --platform=unix64' options_rp = options + ' -rp={}'.format(dir_to_scan)