| 492 | } |
| 493 | |
| 494 | bool cmGlobalXCodeGenerator::ParseKnownAttributes( |
| 495 | cm::string_view attribute, cm::string_view attributeValue) |
| 496 | { |
| 497 | static std::string const knownRegions{ "knownRegions"_s }; |
| 498 | if (attribute == knownRegions) { |
| 499 | std::vector<std::string> regionsVec(cmTokenize(attributeValue, ',')); |
| 500 | cmXCodeObject* allLangs = this->CreateObject(cmXCodeObject::OBJECT_LIST); |
| 501 | for (auto const& region : regionsVec) { |
| 502 | allLangs->AddObject(this->CreateString(cmTrimWhitespace(region))); |
| 503 | } |
| 504 | this->RootObject->AddAttribute(knownRegions, allLangs); |
| 505 | return true; |
| 506 | } |
| 507 | |
| 508 | static std::string const developmentRegion{ "developmentRegion"_s }; |
| 509 | if (attribute == developmentRegion) { |
| 510 | this->RootObject->AddAttribute( |
| 511 | developmentRegion, this->CreateString(cmTrimWhitespace(attributeValue))); |
| 512 | return true; |
| 513 | } |
| 514 | return false; |
| 515 | }; |
| 516 | |
| 517 | void cmGlobalXCodeGenerator::EnableLanguage( |
| 518 | std::vector<std::string> const& lang, cmMakefile* mf, bool optional) |
no test coverage detected