| 138 | } |
| 139 | |
| 140 | bool 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 | |
| 154 | bool cmListFileParser::Parse() |
| 155 | { |
no test coverage detected