[all-commits] [llvm/llvm-project] 22ca91: [clang] more useful error message for decompositio...

Kevin Bravo via All-commits all-commits at lists.llvm.org
Fri Jul 10 10:56:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22ca91ce27af31f579a8a770a4d584f47bcc607f
      https://github.com/llvm/llvm-project/commit/22ca91ce27af31f579a8a770a4d584f47bcc607f
  Author: Kevin Bravo <kbravjr at gmail.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/misc/misplaced-const-cxx17.cpp
    M clang/docs/ReleaseNotes.md
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/PCH/cxx1z-decomposition.cpp
    M clang/test/Parser/cxx1z-decomposition.cpp

  Log Message:
  -----------
  [clang] more useful error message for decomposition declaration missing initializer (#127924)

#90107

Diagnostic message for decomposition declaration missing an initializer
only highlights the declared identifier. This change adds an additional
diagnostic message to highlight the token found where the initializer
was expected. So, for example:

auto [a, b] S = {1, 2}

The new error points to 'S' and says that 'S' was found where an
initializer was expected.



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