[PATCH] D123763: [randstruct] Enforce using a designated init for a randomized struct
Bill Wendling via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 14 00:38:44 PDT 2022
void created this revision.
void added reviewers: aaron.ballman, MaskRay.
Herald added a subscriber: StephenFan.
Herald added a project: All.
void requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
A randomized structure needs to use a designated or default initializer.
Using a non-designated initializer will result in values being assigned
to the wrong fields.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123763
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaInit.cpp
clang/unittests/AST/RandstructTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123763.422760.patch
Type: text/x-patch
Size: 7562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220414/d76ec762/attachment-0001.bin>
More information about the cfe-commits
mailing list