[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
Showing
- docs/ReleaseNotes.rst 6 additions, 0 deletionsdocs/ReleaseNotes.rst
- include/clang/Basic/DiagnosticSemaKinds.td 4 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaExprObjC.cpp 3 additions, 0 deletionslib/Sema/SemaExprObjC.cpp
- test/SemaObjC/warn-messaging-id.mm 21 additions, 0 deletionstest/SemaObjC/warn-messaging-id.mm
Loading
Please register or sign in to comment