[PATCH] D78660: [SemaObjC] Add a warning for dictionary literals with duplicate keys
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 11:58:26 PDT 2020
erik.pilkington created this revision.
erik.pilkington added reviewers: rjmccall, bendjones.
Herald added subscribers: ributzka, dexonsmith, jkorous.
Duplicate keys in a literal break NSDictionary's invariants.
Fixes rdar://50454461
Repository:
rC Clang
https://reviews.llvm.org/D78660
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExprObjC.cpp
clang/test/SemaObjC/dictionary-literal-duplicates.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78660.259348.patch
Type: text/x-patch
Size: 6692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200422/89b4ffad/attachment.bin>
More information about the cfe-commits
mailing list