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

Method MaybeReportError

Source/cmArgumentParser.cxx:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool 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
226bool ParseResult::Check(cm::string_view context,
227 std::vector<std::string> const* unparsedArguments,

Callers 15

cmSetCommandFunction · 0.80
cmBlockCommandFunction · 0.80
cmExecuteProcessCommandFunction · 0.80
QueryWindowsRegistryFunction · 0.80
ParseArgsMethod · 0.80
HandleRPathChangeCommandFunction · 0.80
HandleRPathSetCommandFunction · 0.80
HandleRPathRemoveCommandFunction · 0.80
HandleRPathCheckCommandFunction · 0.80
HandleRealPathCommandFunction · 0.80
HandleGenerateCommandFunction · 0.80

Calls 4

moveFunction · 0.85
cmStrCatFunction · 0.70
cmJoinFunction · 0.70
IssueMessageMethod · 0.45

Tested by 2

InvokeImplMethod · 0.64