| 179 | } |
| 180 | |
| 181 | void 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 | |
| 200 | bool cmInstrumentation::HasErrors() const |
| 201 | { |
no test coverage detected