MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / xml_LoadFile

Function xml_LoadFile

lib/xml.h:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#endif
42
43inline static tinyxml2::XMLError xml_LoadFile(tinyxml2::XMLDocument& doc, const char* filename)
44{
45 // tinyxml2 will fail with a misleading XML_ERROR_FILE_READ_ERROR when you try to load a directory as a XML file
46 if (Path::isDirectory(filename))
47 return tinyxml2::XMLError::XML_ERROR_FILE_NOT_FOUND;
48 return doc.LoadFile(filename);
49}
50
51#endif // xmlH

Callers 1

loadMethod · 0.85

Calls 1

LoadFileMethod · 0.80

Tested by

no test coverage detected