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

Method AddErrorAtValue

Source/cmJSONState.cxx:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void cmJSONState::AddErrorAtValue(std::string const& errMsg,
69 Json::Value const* value)
70{
71 if (value && !value->isNull()) {
72 this->AddErrorAtOffset(errMsg, value->getOffsetStart());
73 } else {
74 this->AddError(errMsg);
75 }
76}
77
78void cmJSONState::AddErrorAtOffset(std::string const& errMsg,
79 std::ptrdiff_t offset)

Callers 15

ErrorGeneratorBuilderFunction · 0.80
InvalidObjectFunction · 0.80
ErrorGeneratorBuilderFunction · 0.80
EnumHelperFunction · 0.80
VersionHelperFunction · 0.80
INVALID_ROOTFunction · 0.80
NO_VERSIONFunction · 0.80
INVALID_VERSIONFunction · 0.80
UNRECOGNIZED_VERSIONFunction · 0.80
INVALID_PRESETSFunction · 0.80
INVALID_PRESETFunction · 0.80
INVALID_VARIABLEFunction · 0.80

Calls 4

AddErrorAtOffsetMethod · 0.95
AddErrorMethod · 0.95
isNullMethod · 0.80
getOffsetStartMethod · 0.80

Tested by 2

ErrorGeneratorBuilderFunction · 0.64
InvalidObjectFunction · 0.64