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

Method ReadJSONQuery

Source/cmInstrumentation.cxx:181–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void cmInstrumentation::ReadJSONQuery(std::string const& file)
182{
183 auto query = cmInstrumentationQuery();
184 query.ReadJSON(file, this->errorMsg, this->options, this->hooks,
185 this->callbacks);
186 if (this->HasOption(cmInstrumentationQuery::Option::CDashVerbose)) {
187 this->AddOption(cmInstrumentationQuery::Option::CDashSubmit);
188 }
189 if (this->HasOption(cmInstrumentationQuery::Option::CDashSubmit)) {
190 this->AddHook(cmInstrumentationQuery::Hook::PrepareForCDash);
191 this->AddOption(cmInstrumentationQuery::Option::DynamicSystemInformation);
192 }
193 if (!this->errorMsg.empty()) {
194 cmSystemTools::Error(cmStrCat(
195 "Could not load instrumentation queries from ",
196 cmSystemTools::GetParentDirectory(file), ":\n", this->errorMsg));
197 }
198}
199
200bool cmInstrumentation::HasErrors() const
201{

Callers 1

ReadJSONQueriesMethod · 0.95

Calls 8

HasOptionMethod · 0.95
AddOptionMethod · 0.95
AddHookMethod · 0.95
ReadJSONMethod · 0.80
ErrorClass · 0.70
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected