summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmStandardLevelResolver.cxx58
1 files changed, 27 insertions, 31 deletions
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx
index de42bc6..50389b5 100644
--- a/Source/cmStandardLevelResolver.cxx
+++ b/Source/cmStandardLevelResolver.cxx
@@ -476,37 +476,33 @@ struct StandardLevelComputer
std::vector<std::string> LevelsAsStrings;
};
-std::unordered_map<std::string, StandardLevelComputer>
- StandardComputerMapping = {
- { "C",
- StandardLevelComputer{
- "C", std::vector<int>{ 90, 99, 11, 17, 23 },
- std::vector<std::string>{ "90", "99", "11", "17", "23" } } },
- { "CXX",
- StandardLevelComputer{ "CXX",
- std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
- std::vector<std::string>{ "98", "11", "14", "17",
- "20", "23", "26" } } },
- { "CUDA",
- StandardLevelComputer{ "CUDA",
- std::vector<int>{ 03, 11, 14, 17, 20, 23, 26 },
- std::vector<std::string>{ "03", "11", "14", "17",
- "20", "23", "26" } } },
- { "OBJC",
- StandardLevelComputer{
- "OBJC", std::vector<int>{ 90, 99, 11, 17, 23 },
- std::vector<std::string>{ "90", "99", "11", "17", "23" } } },
- { "OBJCXX",
- StandardLevelComputer{ "OBJCXX",
- std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
- std::vector<std::string>{ "98", "11", "14", "17",
- "20", "23", "26" } } },
- { "HIP",
- StandardLevelComputer{ "HIP",
- std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
- std::vector<std::string>{ "98", "11", "14", "17",
- "20", "23", "26" } } }
- };
+std::unordered_map<std::string,
+ StandardLevelComputer> const StandardComputerMapping = {
+ { "C",
+ StandardLevelComputer{
+ "C", std::vector<int>{ 90, 99, 11, 17, 23 },
+ std::vector<std::string>{ "90", "99", "11", "17", "23" } } },
+ { "CXX",
+ StandardLevelComputer{
+ "CXX", std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
+ std::vector<std::string>{ "98", "11", "14", "17", "20", "23", "26" } } },
+ { "CUDA",
+ StandardLevelComputer{
+ "CUDA", std::vector<int>{ 03, 11, 14, 17, 20, 23, 26 },
+ std::vector<std::string>{ "03", "11", "14", "17", "20", "23", "26" } } },
+ { "OBJC",
+ StandardLevelComputer{
+ "OBJC", std::vector<int>{ 90, 99, 11, 17, 23 },
+ std::vector<std::string>{ "90", "99", "11", "17", "23" } } },
+ { "OBJCXX",
+ StandardLevelComputer{
+ "OBJCXX", std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
+ std::vector<std::string>{ "98", "11", "14", "17", "20", "23", "26" } } },
+ { "HIP",
+ StandardLevelComputer{
+ "HIP", std::vector<int>{ 98, 11, 14, 17, 20, 23, 26 },
+ std::vector<std::string>{ "98", "11", "14", "17", "20", "23", "26" } } }
+};
}
std::string cmStandardLevelResolver::GetCompileOptionDef(