[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 14:04:05 PDT 2025


================
@@ -499,6 +498,7 @@ LANGOPT(BoundsSafety, 1, 0, NotCompatible, "Bounds safety extension for C")
 LANGOPT(EnableLifetimeSafety, 1, 0, NotCompatible, "Experimental lifetime safety analysis for C++")
 
 LANGOPT(PreserveVec3Type, 1, 0, NotCompatible, "Preserve 3-component vector type")
+LANGOPT(Reflection      , 1, 0, NotCompatible, "C++26 Reflection")
----------------
erichkeane wrote:

I don't think we want this as an option.  IMO, we should just have this be turned on for C++26, and not enable-able for other language versions.

https://github.com/llvm/llvm-project/pull/164692


More information about the cfe-commits mailing list