================
@@ -966,6 +985,32 @@ void MicrosoftCXXNameMangler::mangleName(GlobalDecl GD) {
 
   mangleNestedName(GD);
 
+  if (MangleEmbeddedRecordModule) {
+    // Fire once, for the record itself, not for enclosing-scope components
+    // mangleNestedName may have just recursed into.
+    MangleEmbeddedRecordModule = false;
----------------
rnk wrote:

I don't like having this state. I think I would rather have a default argument 
`bool Terminate = true` that `mangleType(...TagDecl)` passes false for, and 
then you can move this entire if over to the TagDecl case and have it terminate 
the name itself (add the `@`).

https://github.com/llvm/llvm-project/pull/220820
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to