Reland: [clang][AST] Print name instead of type when diagnosing uninitialized subobje...
authorTakuya Shimizu <shimizu2486@gmail.com>
Wed, 24 May 2023 12:21:23 +0000 (21:21 +0900)
committerTakuya Shimizu <shimizu2486@gmail.com>
Wed, 24 May 2023 12:31:25 +0000 (21:31 +0900)
commit456d072405d29ac731ad22fa1ec198b9f8265c4e
tree17bdfdb25641e080d23faf54e187888e65283452
parent94d608d410267db693aa85070263e2b4ef0be913
Reland: [clang][AST] Print name instead of type when diagnosing uninitialized subobject in constexpr variables

This patch improves the diagnostic on uninitialized subobjects in constexpr variables by modifying the diagnostic message to display the subobject's name instead of its type.

Fixes https://github.com/llvm/llvm-project/issues/58601
Differential Revision: https://reviews.llvm.org/D146358
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/Interp/Interp.cpp
clang/test/AST/Interp/cxx20.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
clang/test/SemaCXX/constant-expression-cxx2a.cpp
clang/test/SemaCXX/cxx2a-consteval.cpp