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

Function reportError

Source/cmGeneratorExpressionNode.cxx:5888–5904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5886}
5887
5888void reportError(cm::GenEx::Evaluation* eval, std::string const& expr,
5889 std::string const& result)
5890{
5891 eval->HadError = true;
5892 if (eval->Quiet) {
5893 return;
5894 }
5895
5896 std::ostringstream e;
5897 /* clang-format off */
5898 e << "Error evaluating generator expression:\n"
5899 << " " << expr << "\n"
5900 << result;
5901 /* clang-format on */
5902 eval->Context.LG->GetCMakeInstance()->IssueMessage(MessageType::FATAL_ERROR,
5903 e.str(), eval->Backtrace);
5904}

Callers 15

EvaluateMethod · 0.85
EvaluateParametersMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85

Calls 3

strMethod · 0.80
IssueMessageMethod · 0.45
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…