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

Daniel M. Katz via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 14:07:06 PDT 2025


================
@@ -2883,6 +2883,8 @@ DEF_TRAVERSE_STMT(CXXUnresolvedConstructExpr, {
   TRY_TO(TraverseTypeLoc(S->getTypeSourceInfo()->getTypeLoc()));
 })
 
+DEF_TRAVERSE_STMT(CXXReflectExpr, {/*TODO*/})
----------------
katzdm wrote:

I might be mis-remembering, but I think this is used by `TreeTransform`, in which case we might need this filled in for something like

```cpp
template <typename T>
constexpr int r = (^^T, 1);
```

to work properly. Might be worth implementing this in this PR.

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


More information about the cfe-commits mailing list