[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 21:44:03 PST 2025


================
@@ -1909,7 +1909,19 @@ class Sema final : public SemaBase {
   /// '\#pragma clang attribute push' directives to the given declaration.
   void AddPragmaAttributes(Scope *S, Decl *D);
 
-  void PrintPragmaAttributeInstantiationPoint();
+  using DiagFuncRef =
----------------
zyn0217 wrote:

I think I agree with @cor3ntin here, we need a more specific name than `DiagFuncRef` (which looks like something supposed to be localized in a function other than the god Sema) - how about `InstantiationContextDiagFuncRef`?

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


More information about the cfe-commits mailing list