[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 5 13:24:50 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 =
+ llvm::function_ref<void(SourceLocation, PartialDiagnostic)>;
+ auto getDefaultDiagFunc() {
+ return [this](SourceLocation Loc, PartialDiagnostic PD) {
----------------
erichkeane wrote:
Ah, sorry I didn't clarify. I'm fine not using `PartialDiagnosticAt`, I've had a similar concern with a different patch I was working on. I was mostly answering your question/exposition about the source locations.
https://github.com/llvm/llvm-project/pull/125453
More information about the cfe-commits
mailing list