MCPcopy Create free account
hub / github.com/Kitware/CMake / ParseFile

Method ParseFile

Source/cmXMLParser.cxx:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34int cmXMLParser::ParseFile(char const* file)
35{
36 if (!file) {
37 return 0;
38 }
39
40 cmsys::ifstream ifs(file);
41 if (!ifs) {
42 return 0;
43 }
44
45 std::ostringstream str;
46 str << ifs.rdbuf();
47 return this->Parse(str.str().c_str());
48}
49
50int cmXMLParser::InitializeParser()
51{

Callers 12

parsedRightFunction · 0.45
testXMLParserFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
ReadDependentFileMethod · 0.45
ReadListFileMethod · 0.45
ConfigureMethod · 0.45
CreateGlobalGeneratorMethod · 0.45
GenerateBuildCommandMethod · 0.45
ParseVersionMethod · 0.45

Calls 3

ParseMethod · 0.95
c_strMethod · 0.80
strMethod · 0.80

Tested by 2

parsedRightFunction · 0.36
testXMLParserFunction · 0.36