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

Method BuildClientRequestCodeModel

Source/cmFileAPI.cxx:827–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825static unsigned int const CodeModelV2Minor = 10;
826
827void cmFileAPI::BuildClientRequestCodeModel(
828 ClientRequest& r, std::vector<RequestVersion> const& versions)
829{
830 // Select a known version from those requested.
831 for (RequestVersion const& v : versions) {
832 if ((v.Major == 2 && v.Minor <= CodeModelV2Minor)) {
833 r.Version = v.Major;
834 break;
835 }
836 }
837 if (!r.Version) {
838 r.Error = NoSupportedVersion(versions);
839 }
840}
841
842Json::Value cmFileAPI::BuildCodeModel(Object object)
843{

Callers 1

BuildClientRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected