[libcxx-commits] [libcxx] 2020545 - [libc++][test] Removes old fallbacks.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 20 10:29:54 PDT 2023


Author: Mark de Wever
Date: 2023-06-20T19:29:49+02:00
New Revision: 202054559cb2fe38b3226cdc4e501e264e6a3a48

URL: https://github.com/llvm/llvm-project/commit/202054559cb2fe38b3226cdc4e501e264e6a3a48
DIFF: https://github.com/llvm/llvm-project/commit/202054559cb2fe38b3226cdc4e501e264e6a3a48.diff

LOG: [libc++][test] Removes old fallbacks.

All supported compilers support the -std=year except Clang < 17 which
doesn't support C++23. This fallback is marked for removal once we no
longer support Clang 16.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D152106

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/params.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index a23d833e56904..851d9a828a33f 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -57,18 +57,15 @@
 
 
 def getStdFlag(cfg, std):
-    fallbacks = {
-        "c++11": "c++0x",
-        "c++14": "c++1y",
-        "c++17": "c++1z",
-        "c++20": "c++2a",
-        "c++23": "c++2b",
-    }
     # TODO(LLVM-17) Remove this clang-tidy-16 work-around
     if std == "c++23":
         std = "c++2b"
     if hasCompileFlag(cfg, "-std=" + std):
         return "-std=" + std
+    # TODO(LLVM-19) Remove the fallbacks needed for Clang 16.
+    fallbacks = {
+        "c++23": "c++2b",
+    }
     if std in fallbacks and hasCompileFlag(cfg, "-std=" + fallbacks[std]):
         return "-std=" + fallbacks[std]
     return None


        


More information about the libcxx-commits mailing list