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

Method DumpLinkItem

Source/cmFileAPICodemodel.cxx:2316–2332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2314}
2315
2316Json::Value Target::DumpLinkItem(cmLinkItem const& linkItem)
2317{
2318 Json::Value itemJson = Json::objectValue;
2319 if (linkItem.Target) {
2320 itemJson["id"] = TargetId(linkItem.Target, this->TopBuild);
2321 } else {
2322 itemJson["fragment"] = linkItem.AsStr();
2323 }
2324 if (linkItem.InterfaceDirectFrom) {
2325 Json::Value jsonDirectFrom = Json::objectValue;
2326 jsonDirectFrom["id"] =
2327 TargetId(linkItem.InterfaceDirectFrom, this->TopBuild);
2328 itemJson["fromDependency"] = jsonDirectFrom;
2329 }
2330 this->AddBacktrace(itemJson, linkItem.Backtrace);
2331 return itemJson;
2332}
2333
2334Json::Value Target::DumpLinkImplementationLibraries(
2335 cmGeneratorTarget::UseTo usage)

Calls 2

TargetIdFunction · 0.85
AddBacktraceMethod · 0.80

Tested by

no test coverage detected