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();
|
temp.premiumArgs += std::string(" --") + child->GetText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strcmp(node->Name(), CppcheckXml::ProjectNameElementName) == 0)
|
||||||
|
; // no-op
|
||||||
else {
|
else {
|
||||||
printError("Unknown element '" + std::string(node->Name()) + "' in Cppcheck project file");
|
printError("Unknown element '" + std::string(node->Name()) + "' in Cppcheck project file");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -340,6 +340,7 @@ private:
|
||||||
" <exclude>\n"
|
" <exclude>\n"
|
||||||
" <path name=\"gui/temp/\"/>\n"
|
" <path name=\"gui/temp/\"/>\n"
|
||||||
" </exclude>\n"
|
" </exclude>\n"
|
||||||
|
" <project-name>test test</project-name>\n"
|
||||||
"</project>\n";
|
"</project>\n";
|
||||||
std::istringstream istr(xml);
|
std::istringstream istr(xml);
|
||||||
Settings s;
|
Settings s;
|
||||||
|
|
Loading…
Reference in New Issue