[all-commits] [llvm/llvm-project] f66c0d: [clang] print correct context for diagnostics supp...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sun Feb 2 19:08:57 PST 2025


  Branch: refs/heads/users/mizvekov/clang-print-context-stack-diags-supressed-by-deduction
  Home:   https://github.com/llvm/llvm-project
  Commit: f66c0dee850dc6e4c03bfd557365480954bf2e40
      https://github.com/llvm/llvm-project/commit/f66c0dee850dc6e4c03bfd557365480954bf2e40
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-02-03 (Mon, 03 Feb 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/CXX/drs/cwg0xx.cpp
    M clang/test/CXX/drs/cwg4xx.cpp
    M clang/test/CXX/temp/temp.arg/temp.arg.type/p2.cpp
    M clang/test/SemaCXX/anonymous-struct.cpp
    M clang/test/SemaCXX/bool-increment-SFINAE.cpp
    M clang/test/SemaCXX/cxx98-compat-flags.cpp
    M clang/test/SemaCXX/cxx98-compat.cpp
    M clang/test/SemaCXX/deprecated.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp
    M clang/test/SemaCXX/undefined-internal.cpp
    M clang/test/SemaTemplate/recovery-crash.cpp
    M clang/test/SemaTemplate/temp_arg_nontype.cpp

  Log Message:
  -----------
  [clang] print correct context for diagnostics suppressed by deduction

This patch makes it so the correct instantiation context is printed
for diagnostics suppessed by template argument deduction.

The context is saved along with the suppressed diagnostic, and
when the declaration they were attached to becomes used, we print
the correct context, instead of whatever context was at this point.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list