Skip to content

Conversation

@mordante
Copy link
Member

Since Clang 16 is no longer supported all compilers support C++23.

@mordante mordante requested a review from a team as a code owner April 12, 2024 18:50
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Apr 12, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 12, 2024

@llvm/pr-subscribers-libcxx

Author: Mark de Wever (mordante)

Changes

Since Clang 16 is no longer supported all compilers support C++23.


Full diff: https://github.com/llvm/llvm-project/pull/88557.diff

1 Files Affected:

  • (modified) libcxx/utils/libcxx/test/params.py (-6)
diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index 5e42562ed5db52..5bc6e101c15420 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -79,12 +79,6 @@
 def getStdFlag(cfg, std):
     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
 
 

@mordante
Copy link
Member Author

It seems the Apple build bots still need this fallback option. So wait until the next Xcode release.

Copy link
Member

@ldionne ldionne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once we're able to have a green CI run (once we update Xcode).

@philnik777
Copy link
Contributor

@mordante this should be ready now, right?

@ldionne ldionne force-pushed the review/removes_clang_16_cxx23_version_selection branch from a750f0e to acbaac8 Compare September 16, 2024 20:47
@ldionne
Copy link
Member

ldionne commented Sep 16, 2024

Rebased onto main to give it a shot.

@mordante mordante force-pushed the review/removes_clang_16_cxx23_version_selection branch from acbaac8 to 7574893 Compare December 2, 2024 17:55
@mordante mordante force-pushed the review/removes_clang_16_cxx23_version_selection branch from 7574893 to f8532c4 Compare December 23, 2024 16:27
Since Clang 16 is no longer supported all compilers support C++23.
@mordante mordante force-pushed the review/removes_clang_16_cxx23_version_selection branch from f8532c4 to dbab61e Compare January 25, 2025 13:49
@mordante
Copy link
Member Author

It seems that AppleClang-15 is blocking this patch.

@mordante mordante merged commit 1847b00 into llvm:main Apr 7, 2025
80 checks passed
@mordante mordante deleted the review/removes_clang_16_cxx23_version_selection branch April 7, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants