[libcxx-commits] [PATCH] D152106: [libc++][test] Removes old fallbacks.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 4 10:14:45 PDT 2023
Mordante created this revision.
Herald added a subscriber: arichardson.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152106
Files:
libcxx/utils/libcxx/test/params.py
Index: libcxx/utils/libcxx/test/params.py
===================================================================
--- libcxx/utils/libcxx/test/params.py
+++ libcxx/utils/libcxx/test/params.py
@@ -56,18 +56,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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152106.528235.patch
Type: text/x-patch
Size: 830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230604/60512b27/attachment-0001.bin>
More information about the libcxx-commits
mailing list