[PATCH] D82611: [SemaObjC] Add a warning for @selector expressions that potentially refer to objc_direct methods

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 16:56:41 PDT 2020


erik.pilkington created this revision.
erik.pilkington added reviewers: rjmccall, MadCoder.
Herald added subscribers: ributzka, dexonsmith, jkorous.

As a heuristic, only warn if the selector matches a method declared in the current interface.

rdar://64621668


https://reviews.llvm.org/D82611

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaExprObjC.cpp
  clang/test/SemaObjC/potentially-direct-selector.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82611.273549.patch
Type: text/x-patch
Size: 10249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200625/3b69a9b0/attachment.bin>


More information about the cfe-commits mailing list