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

Method ParseString

Source/cmListFileCache.cxx:140–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool cmListFileParser::ParseString(cm::string_view str,
141 char const* virtual_filename)
142{
143 this->FileName = virtual_filename;
144
145 if (!cmListFileLexer_SetString(this->Lexer.get(), str.data(),
146 str.length())) {
147 this->IssueFileOpenError("cmListFileCache: cannot allocate buffer.");
148 return false;
149 }
150
151 return this->Parse();
152}
153
154bool cmListFileParser::Parse()
155{

Callers 2

ReadListFileAsStringMethod · 0.45
HandleExprCommandFunction · 0.45

Calls 6

IssueFileOpenErrorMethod · 0.95
ParseMethod · 0.95
lengthMethod · 0.80
getMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected