[clang] [clang]: support std::meta::info for primitive types (PR #190356)

Daniel M. Katz via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 4 08:20:24 PDT 2026


================
@@ -10936,6 +10939,46 @@ bool PointerExprEvaluator::VisitCXXNewExpr(const CXXNewExpr *E) {
 
   return true;
 }
+
+//===----------------------------------------------------------------------===//
+// Reflection expression evaluation
+//===----------------------------------------------------------------------===//
+
+namespace {
+class ReflectionEvaluator
----------------
katzdm wrote:

If the question reduces to whether other kinds of expressions can compute a reflection during constant evaluation - then, yes: Function calls, id-expressions, splice-expressions, and `std::meta::info{}` can all compute a value of type `std::meta::info`.

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


More information about the cfe-commits mailing list