[llvm-branch-commits] [clang] [clang] Implement instantiation context note for checking template parameters (PR #126088)

Matheus Izvekov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 19 09:15:39 PST 2025


================
@@ -1909,7 +1909,22 @@ class Sema final : public SemaBase {
   /// '\#pragma clang attribute push' directives to the given declaration.
   void AddPragmaAttributes(Scope *S, Decl *D);
 
-  void PrintPragmaAttributeInstantiationPoint();
+  using DiagFuncRef =
+      llvm::function_ref<void(SourceLocation, PartialDiagnostic)>;
+  auto getDefaultDiagFunc() {
+    return [this](SourceLocation Loc, PartialDiagnostic PD) {
+      // This bypasses a lof of the filters in the diag engine, as it's
----------------
mizvekov wrote:

Not part of this PR, this is currently not rebased.
This has been fixed in the parent PR, and will disappear when rebased.

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


More information about the llvm-branch-commits mailing list