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

Method LoadFile

externals/tinyxml2/tinyxml2.cpp:2344–2361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2342
2343
2344XMLError XMLDocument::LoadFile( const char* filename )
2345{
2346 if ( !filename ) {
2347 TIXMLASSERT( false );
2348 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2349 return _errorID;
2350 }
2351
2352 Clear();
2353 FILE* fp = callfopen( filename, "rb" );
2354 if ( !fp ) {
2355 SetError( XML_ERROR_FILE_NOT_FOUND, 0, "filename=%s", filename );
2356 return _errorID;
2357 }
2358 LoadFile( fp );
2359 fclose( fp );
2360 return _errorID;
2361}
2362
2363XMLError XMLDocument::LoadFile( FILE* fp )
2364{

Callers 11

loadFromFileMethod · 0.80
parseXmlFileMethod · 0.80
importSlnxMethod · 0.80
importVcxprojMethod · 0.80
importVcxitemsMethod · 0.80
importBcb6PrjMethod · 0.80
analyzeFileMethod · 0.80
processFilesTxtMethod · 0.80
xml_LoadFileFunction · 0.80
parseFromArgsMethod · 0.80

Calls 1

callfopenFunction · 0.85

Tested by

no test coverage detected