@@ -130,7 +130,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
130130 ++iter;
131131 else {
132132 // If the include path is not found, warn user and remove the non-existing path from the list.
133- if (settings.isEnabled (Settings::INFORMATION ))
133+ if (settings.severity . isEnabled (Severity::information ))
134134 std::cout << " (information) Couldn't find path given by -I '" << path << ' \' ' << std::endl;
135135 iter = settings.includePaths .erase (iter);
136136 }
@@ -853,7 +853,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
853853 if (!tryLoadLibrary (settings.library , argv[0 ], lib.c_str ())) {
854854 const std::string msg (" Failed to load the library " + lib);
855855 const std::list<ErrorMessage::FileLocation> callstack;
856- ErrorMessage errmsg (callstack, emptyString, Severity::information, msg, " failedToLoadCfg" , false );
856+ ErrorMessage errmsg (callstack, emptyString, Severity::information, msg, " failedToLoadCfg" , Certainty::normal );
857857 reportErr (errmsg);
858858 return EXIT_FAILURE;
859859 }
@@ -879,7 +879,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
879879 " std.cfg should be available in " + cfgfolder + " or the FILESDIR "
880880 " should be configured." );
881881#endif
882- ErrorMessage errmsg (callstack, emptyString, Severity::information, msg+" " +details, " failedToLoadCfg" , false );
882+ ErrorMessage errmsg (callstack, emptyString, Severity::information, msg+" " +details, " failedToLoadCfg" , Certainty::normal );
883883 reportErr (errmsg);
884884 return EXIT_FAILURE;
885885 }
@@ -963,7 +963,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
963963
964964 cppcheck.analyseWholeProgram (mSettings ->buildDir , mFiles );
965965
966- if (settings.isEnabled (Settings::INFORMATION ) || settings.checkConfiguration ) {
966+ if (settings.severity . isEnabled (Severity::information ) || settings.checkConfiguration ) {
967967 const bool enableUnusedFunctionCheck = cppcheck.isUnusedFunctionCheckEnabled ();
968968
969969 if (settings.jointSuppressionReport ) {
@@ -982,7 +982,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
982982 if (!settings.checkConfiguration ) {
983983 cppcheck.tooManyConfigsError (" " ,0U );
984984
985- if (settings.isEnabled (Settings::MISSING_INCLUDE ) && (Preprocessor::missingIncludeFlag || Preprocessor::missingSystemIncludeFlag)) {
985+ if (settings.checks . isEnabled (Checks::missingInclude ) && (Preprocessor::missingIncludeFlag || Preprocessor::missingSystemIncludeFlag)) {
986986 const std::list<ErrorMessage::FileLocation> callStack;
987987 ErrorMessage msg (callStack,
988988 emptyString,
@@ -994,7 +994,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
994994 " as include directories for Cppcheck. To see what files Cppcheck cannot find use "
995995 " --check-config." ,
996996 Preprocessor::missingIncludeFlag ? " missingInclude" : " missingIncludeSystem" ,
997- false );
997+ Certainty::normal );
998998 reportInfo (msg);
999999 }
10001000 }
0 commit comments