@@ -1147,6 +1147,8 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
11471147
11481148 guiProject.analyzeAllVsConfigs .clear ();
11491149
1150+ bool checkLevelExhaustive = false ;
1151+
11501152 // TODO: this should support all available command-line options
11511153 for (const tinyxml2::XMLElement *node = rootnode->FirstChildElement (); node; node = node->NextSiblingElement ()) {
11521154 if (strcmp (node->Name (), CppcheckXml::RootPathName) == 0 ) {
@@ -1216,6 +1218,8 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
12161218 }
12171219 } else if (strcmp (node->Name (), CppcheckXml::CheckHeadersElementName) == 0 )
12181220 temp.checkHeaders = (strcmp (readSafe (node->GetText (), " " ), " true" ) == 0 );
1221+ else if (strcmp (node->Name (), CppcheckXml::CheckLevelExhaustiveElementName) == 0 )
1222+ checkLevelExhaustive = true ;
12191223 else if (strcmp (node->Name (), CppcheckXml::CheckUnusedTemplatesElementName) == 0 )
12201224 temp.checkUnusedTemplates = (strcmp (readSafe (node->GetText (), " " ), " true" ) == 0 );
12211225 else if (strcmp (node->Name (), CppcheckXml::MaxCtuDepthElementName) == 0 )
@@ -1281,6 +1285,11 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
12811285 settings->maxTemplateRecursion = temp.maxTemplateRecursion ;
12821286 settings->safeChecks = temp.safeChecks ;
12831287
1288+ if (checkLevelExhaustive)
1289+ settings->setCheckLevelExhaustive ();
1290+ else
1291+ settings->setCheckLevelNormal ();
1292+
12841293 return true ;
12851294}
12861295
0 commit comments