| 210 | } |
| 211 | |
| 212 | bool ParseResult::MaybeReportError(cmMakefile& mf) const |
| 213 | { |
| 214 | if (*this) { |
| 215 | return false; |
| 216 | } |
| 217 | std::string e; |
| 218 | for (auto const& kel : this->KeywordErrors) { |
| 219 | e = cmStrCat(std::move(e), "Error after keyword \"", kel.first, "\":\n", |
| 220 | cmJoin(kel.second, {})); |
| 221 | } |
| 222 | mf.IssueMessage(MessageType::FATAL_ERROR, e); |
| 223 | return true; |
| 224 | } |
| 225 | |
| 226 | bool ParseResult::Check(cm::string_view context, |
| 227 | std::vector<std::string> const* unparsedArguments, |