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

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Wed Feb 5 13:24:25 PST 2025


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