[PATCH] D150450: Add C++26 compile flags.
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 12 07:58:01 PDT 2023
cor3ntin added a comment.
Similar PR here https://reviews.llvm.org/D149875
================
Comment at: clang/docs/ReleaseNotes.rst:114
+^^^^^^^^^^^^^^^^^^^^^
+- Compiler flags -std=c++2c and -std=gnu++2c have been added for experimental C++26 implementation work.
+
----------------
This should be 2c
================
Comment at: clang/lib/Frontend/InitPreprocessor.cpp:456
+ // FIXME: Use correct value for C++26.
+ Builder.defineMacro("__cplusplus", "202102L");
+ // FIXME: Use correct value for C++23, and update C++26 to be 'one more'.
----------------
erichkeane wrote:
> At the moment, I just chose '1 more than c++23', but that hasn't been set yet. Once we have the final value, we should make this 1 more than 23's official value.
A value lesser than 202401L seems super confusing to me
================
Comment at: clang/www/OpenProjects.html:126
-<li><b>Continue work on C++20, C++23, and C2x support</b>:
+<li><b>Continue work on C++20, C++23, C++26, and C2x support</b>:
There are still several C++20 features to complete, and work has begun on
----------------
erichkeane wrote:
> Should this spot in the docs be `C++2c`?
I think so
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150450/new/
https://reviews.llvm.org/D150450
More information about the cfe-commits
mailing list