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

Method BuildCodeModel

Source/cmFileAPI.cxx:842–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840}
841
842Json::Value cmFileAPI::BuildCodeModel(Object object)
843{
844 assert(object.Version == 2);
845 Json::Value codemodel =
846 cmFileAPICodemodelDump(*this, object.Version, CodeModelV2Minor);
847 codemodel["kind"] = this->ObjectKindName(object.Kind);
848
849 Json::Value& version = codemodel["version"];
850 if (object.Version == 2) {
851 version = BuildVersion(2, CodeModelV2Minor);
852 } else {
853 return codemodel; // should be unreachable
854 }
855
856 return codemodel;
857}
858
859// The "configureLog" object kind.
860

Callers 1

BuildObjectMethod · 0.95

Calls 2

ObjectKindNameMethod · 0.95
cmFileAPICodemodelDumpFunction · 0.85

Tested by

no test coverage detected