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

Method GetNewRequiredStandard

Source/cmStandardLevelResolver.cxx:752–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752bool cmStandardLevelResolver::GetNewRequiredStandard(
753 std::string const& targetName, std::string const& feature,
754 cmValue currentLangStandardValue,
755 cm::optional<cmStandardLevel>& featureLevel,
756 std::string& newRequiredStandard, std::string* error) const
757{
758 std::string lang;
759 if (!this->CheckCompileFeaturesAvailable(targetName, feature, lang, error)) {
760 return false;
761 }
762
763 featureLevel = this->CompileFeatureStandardLevel(lang, feature);
764
765 auto mapping = StandardComputerMapping.find(lang);
766 if (mapping != cm::cend(StandardComputerMapping)) {
767 return mapping->second.GetNewRequiredStandard(
768 this->Makefile, targetName, featureLevel, currentLangStandardValue,
769 newRequiredStandard, error);
770 }
771 return false;
772}
773
774bool cmStandardLevelResolver::HaveStandardAvailable(
775 cmGeneratorTarget const* target, std::string const& lang,

Callers 2

Calls 3

findMethod · 0.45

Tested by

no test coverage detected