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

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 15:50:29 PDT 2025


================
@@ -2566,6 +2566,11 @@ void StmtPrinter::VisitCXXUnresolvedConstructExpr(
     OS << ')';
 }
 
+void StmtPrinter::VisitCXXReflectExpr(CXXReflectExpr *S) {
+  // TODO: Make this better.
+  OS << "^(...)";
----------------
Sirraide wrote:

Printing this *shouldn’t* be too complicated, so we should definitely add support for this now so we can extend it incrementally.

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


More information about the cfe-commits mailing list