[PATCH] D49119: [Sema][ObjC] Issue a warning when a method declared in a protocol is non-escaping but the corresponding method in the implementation is escaping.
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 27 17:21:28 PDT 2018
ahatanak updated this revision to Diff 157815.
ahatanak added a comment.
- Produce a note that tells users where the class extension conforming to the protocol containing the non-escaping method is declared.
- Add a class method that has the same name as the instance method and check that no spurious warnings are issued.
Repository:
rC Clang
https://reviews.llvm.org/D49119
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclObjC.cpp
test/SemaObjCXX/noescape.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49119.157815.patch
Type: text/x-patch
Size: 5028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180728/25e44416/attachment.bin>
More information about the cfe-commits
mailing list