| 875 | } |
| 876 | |
| 877 | bool ImportProject::importVcxproj(const std::string &filename, |
| 878 | std::map<std::string, std::string, cppcheck::stricmp> &variables, |
| 879 | const std::string &additionalIncludeDirectories, |
| 880 | const std::vector<std::string> &fileFilters, |
| 881 | std::vector<SharedItemsProject> &cache) |
| 882 | { |
| 883 | tinyxml2::XMLDocument doc; |
| 884 | const tinyxml2::XMLError error = doc.LoadFile(filename.c_str()); |
| 885 | if (error != tinyxml2::XML_SUCCESS) { |
| 886 | errors.emplace_back(std::string("Visual Studio project file is not a valid XML - ") + tinyxml2::XMLDocument::ErrorIDToName(error)); |
| 887 | return false; |
| 888 | } |
| 889 | return importVcxproj(filename, doc, variables, additionalIncludeDirectories, fileFilters, cache); |
| 890 | } |
| 891 | |
| 892 | bool ImportProject::importVcxproj(const std::string &filename, const tinyxml2::XMLDocument &doc, std::map<std::string, std::string, cppcheck::stricmp> &variables, const std::string &additionalIncludeDirectories, const std::vector<std::string> &fileFilters, std::vector<SharedItemsProject> &cache) |
| 893 | { |