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

Method ParseFile

Source/cmVisualStudioSlnParser.cxx:444–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444bool cmVisualStudioSlnParser::ParseFile(std::string const& file,
445 cmSlnData& output,
446 DataGroupSet dataGroups)
447{
448 this->LastResult.Clear();
449 if (!this->IsDataGroupSetSupported(dataGroups)) {
450 this->LastResult.SetError(ResultErrorUnsupportedDataGroup, 0);
451 return false;
452 }
453 cmsys::ifstream f(file.c_str());
454 if (!f) {
455 this->LastResult.SetError(ResultErrorOpeningInput, 0);
456 return false;
457 }
458 State state(dataGroups);
459 return this->ParseImpl(f, output, state);
460}
461
462cmVisualStudioSlnParser::ParseResult cmVisualStudioSlnParser::GetParseResult()
463 const

Callers

nothing calls this directly

Calls 5

ParseImplMethod · 0.95
c_strMethod · 0.80
ClearMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected