[clang] [Clang][RFC] Intrododuce a builtin to determine the structure binding size (PR #131515)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 17 01:43:17 PDT 2025


================
@@ -5389,6 +5389,15 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity,
       Diags.Report(DiagID);
       return;
     }
+    case UETT_StructuredBindingSize:
+      Out << "u11__builtin_structured_binding_size";
----------------
cor3ntin wrote:

Thanks! (it took me a while to understand how that works so I ended up refactoring the whole function)

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


More information about the cfe-commits mailing list