[PATCH] D158526: [clang] Properly print unnamed members in diagnostics
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 09:43:15 PDT 2023
Fznamznon created this revision.
Herald added a project: All.
Fznamznon requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Use member's type when printing.
This also fixes a bug in warning diagnostic for out of order
initialization with designated initializers so it points to a valid
source location when an anonymous member is being initialized.
Fixes https://github.com/llvm/llvm-project/issues/63759
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158526
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/Decl.h
clang/lib/AST/Decl.cpp
clang/lib/Sema/SemaInit.cpp
clang/test/AST/ast-dump-APValue-anon-union.cpp
clang/test/CXX/special/class.dtor/p5-0x.cpp
clang/test/Sema/transparent-union.c
clang/test/SemaCXX/cxx0x-nontrivial-union.cpp
clang/test/SemaCXX/cxx2a-initializer-aggregates.cpp
clang/test/SemaObjCXX/arc-0x.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158526.552410.patch
Type: text/x-patch
Size: 9961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230822/5c4a5981/attachment-0001.bin>
More information about the cfe-commits
mailing list