[PATCH] D150450: Add C++26 compile flags.

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 12 08:00:37 PDT 2023


cor3ntin added inline comments.


================
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'.
----------------
cor3ntin wrote:
> 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
In the DIS __cplusplus is 202302L


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150450/new/

https://reviews.llvm.org/D150450



More information about the cfe-commits mailing list