[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 16:39:47 PDT 2024


================
@@ -1938,12 +1946,23 @@ void MicrosoftCXXNameMangler::mangleTemplateArgValue(QualType T,
         mangleNumber(V.getLValueOffset().getQuantity());
       } else if (!V.hasLValuePath()) {
         // FIXME: This can only happen as an extension. Invent a mangling.
-        break;
+        DiagnosticsEngine &Diags = Context.getDiags();
+        unsigned DiagID =
+            Diags.getCustomDiagID(DiagnosticsEngine::Error,
+                                  "cannot mangle this template argument yet "
+                                  "(non-null base with null lvalue path)");
----------------
memory-thrasher wrote:

I just want something to differentiate the 5 otherwise identical errors to save some future user that step when reporting or fixing one of them. I'm open for suggests on phrasing, anything other than going back to the same message in all 5 cases.

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


More information about the cfe-commits mailing list