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

Method ReadJSONQueries

Source/cmInstrumentation.cxx:165–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool cmInstrumentation::ReadJSONQueries(std::string const& directory)
166{
167 cmsys::Directory d;
168 bool result = false;
169 if (d.Load(directory)) {
170 for (unsigned int i = 0; i < d.GetNumberOfFiles(); i++) {
171 std::string fpath = d.GetFilePath(i);
172 if (cmHasLiteralSuffix(fpath, ".json")) {
173 result = true;
174 this->ReadJSONQuery(fpath);
175 }
176 }
177 }
178 return result;
179}
180
181void cmInstrumentation::ReadJSONQuery(std::string const& file)
182{

Callers 1

LoadQueriesMethod · 0.95

Calls 3

ReadJSONQueryMethod · 0.95
cmHasLiteralSuffixFunction · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected