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

Method GetLevelString

Source/cmStandardLevelResolver.cxx:544–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544std::string cmStandardLevelResolver::GetLevelString(
545 std::string const& lang, cmStandardLevel level) const
546{
547 auto mapping = StandardComputerMapping.find(lang);
548 if (mapping == StandardComputerMapping.end()) {
549 return {};
550 }
551
552 if (mapping->second.LevelsAsStrings.size() <= level.Index()) {
553 return {};
554 }
555
556 return mapping->second.LevelsAsStrings[level.Index()];
557}
558
559bool cmStandardLevelResolver::AddRequiredTargetFeature(
560 cmTarget* target, std::string const& feature, std::string* error) const

Callers 1

ApplyCXXStdTargetsMethod · 0.80

Calls 4

IndexMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected