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

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Thu Feb 6 08:12:59 PST 2025


  Branch: refs/heads/users/mizvekov/clang-print-context-stack-diags-supressed-by-deduction
  Home:   https://github.com/llvm/llvm-project
  Commit: a36dcb035a30b560eb9dd14fd3ce2f8e8952b8ee
      https://github.com/llvm/llvm-project/commit/a36dcb035a30b560eb9dd14fd3ce2f8e8952b8ee
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-02-06 (Thu, 06 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