MCPcopy Index your code
hub / github.com/Kitware/CMake / AddErrorAtOffset

Method AddErrorAtOffset

Source/cmJSONState.cxx:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void cmJSONState::AddErrorAtOffset(std::string const& errMsg,
79 std::ptrdiff_t offset)
80{
81 if (doc.empty()) {
82 this->AddError(errMsg);
83 } else {
84 Location loc = LocateInDocument(offset);
85 this->errors.emplace_back(loc, errMsg);
86 }
87}
88
89std::string cmJSONState::GetErrorMessage(bool showContext)
90{

Callers 2

cmJSONStateMethod · 0.95
AddErrorAtValueMethod · 0.95

Calls 3

AddErrorMethod · 0.95
emplace_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected