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

Method MaybeJsonFile

Source/cmFileAPI.cxx:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273Json::Value cmFileAPI::MaybeJsonFile(Json::Value in, std::string const& prefix)
274{
275 Json::Value out;
276 if (in.isObject() || in.isArray()) {
277 out = Json::objectValue;
278 out["jsonFile"] = this->WriteJsonFile(in, prefix);
279 } else {
280 out = std::move(in);
281 }
282 return out;
283}
284
285std::string cmFileAPI::ComputeSuffixHash(std::string const& file)
286{

Callers 2

DumpTargetMethod · 0.80
DumpDirectoryObjectMethod · 0.80

Calls 4

WriteJsonFileMethod · 0.95
moveFunction · 0.85
isObjectMethod · 0.80
isArrayMethod · 0.80

Tested by

no test coverage detected