Support importing projects with project-name (#5456)
This commit is contained in:
parent
10c1ac977c
commit
b6f60ad952
|
@ -1232,6 +1232,8 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
|
|||
temp.premiumArgs += std::string(" --") + child->GetText();
|
||||
}
|
||||
}
|
||||
else if (strcmp(node->Name(), CppcheckXml::ProjectNameElementName) == 0)
|
||||
; // no-op
|
||||
else {
|
||||
printError("Unknown element '" + std::string(node->Name()) + "' in Cppcheck project file");
|
||||
return false;
|
||||
|
|
|
@ -340,6 +340,7 @@ private:
|
|||
" <exclude>\n"
|
||||
" <path name=\"gui/temp/\"/>\n"
|
||||
" </exclude>\n"
|
||||
" <project-name>test test</project-name>\n"
|
||||
"</project>\n";
|
||||
std::istringstream istr(xml);
|
||||
Settings s;
|
||||
|
|
Loading…
Reference in New Issue