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

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 4 08:07:00 PDT 2026


================
@@ -701,6 +716,16 @@ class APValue {
     return ((const AddrLabelDiffData *)(const char *)&Data)->RHSExpr;
   }
 
+  const ReflectionKind getReflectionOperandKind() const {
+    assert(isReflection() && "Invalid accessor");
+    return ((const ReflectionData *)(const char *)&Data)->OperandKind;
+  }
+
+  const void* getOpaqueReflectionOperand() const {
----------------
Sirraide wrote:

That sounds pretty awkward; `getOpaqueReflectionOperand()` is better imo.

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


More information about the cfe-commits mailing list