[PATCH] D76643: [objc_direct] also go through implementations when looking for clashes

Pierre Habouzit via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 23 15:16:32 PDT 2020


MadCoder created this revision.
MadCoder added reviewers: erik.pilkington, ahatanak, dexonsmith, arphaman.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Some methods are sometimes declared in the @implementation blocks which can cause undiagnosed clashes.

Just write a checkObjCDirectMethodClashes() for this purpose.

Signed-off-by: Pierre Habouzit <phabouzit at apple.com>
Radar-ID: rdar://problem/59332804


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76643

Files:
  clang/lib/Sema/SemaDeclObjC.cpp
  clang/test/SemaObjC/method-direct-one-definition.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76643.252152.patch
Type: text/x-patch
Size: 6538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200323/cb0f8c8e/attachment-0001.bin>


More information about the cfe-commits mailing list