]> granicus.if.org Git - clang/commit
[ObjC] Add a -Wobjc-messaging-id warning
authorAlex Lorenz <arphaman@gmail.com>
Fri, 25 Aug 2017 16:12:17 +0000 (16:12 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 25 Aug 2017 16:12:17 +0000 (16:12 +0000)
commit6f135344102bde8d81237cef04ea3d4e1a1b8b46
treecb037b3a08f0689d54e58dd30ee8b9854053672f
parent494ef6fbebeba1d68dab968806e2e7adfd2788ec
[ObjC] Add a -Wobjc-messaging-id warning

-Wobjc-messaging-id is a new, non-default warning that warns about
message sends to unqualified id in Objective-C. This warning is useful
for projects that would like to avoid any potential future compiler
errors/warnings, as the system frameworks might add a method with the same
selector which could make the message send to id ambiguous.

rdar://33303354

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311779 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/warn-messaging-id.mm [new file with mode: 0644]