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

Function ErrorGeneratorBuilder

Source/cmInstrumentationQuery.cxx:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using ErrorGenerator =
29 std::function<void(Json::Value const*, cmJSONState* state)>;
30ErrorGenerator ErrorGeneratorBuilder(std::string const& errorMessage)
31{
32 return [errorMessage](Json::Value const* value, cmJSONState* state) -> void {
33 state->AddErrorAtValue(errorMessage, value);
34 };
35};
36
37static ErrorGenerator InvalidArray = ErrorGeneratorBuilder("Invalid Array");
38JsonErrors::ErrorGenerator InvalidRootQueryObject(

Callers 1

Calls 1

AddErrorAtValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…