]> granicus.if.org Git - clang/commit
ObjectiveC migrator: If we find a method that returns a C pointer
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 30 Aug 2013 23:52:08 +0000 (23:52 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 30 Aug 2013 23:52:08 +0000 (23:52 +0000)
commit8a6ad2a21dcb654db25cf66408466d2e7a93e09c
treea5d662b616d7e9f0a4d03a361dc5948ae6b74c90
parentc55bee6e278d888d7a5d29fc17df6a9ae1e8b7d3
ObjectiveC migrator: If we find a method that returns a C pointer
of some sort (but not an object, block pointer or CF pointers),
and is not annotated with the objc_returns_inner_pointer attribute,
we should suggest NS_RETURNS_INNER_POINTER annotation for these methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189707 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ARCMigrate/ObjCMT.cpp
test/ARCMT/objcmt-ns-returns-inner-pointer.m [new file with mode: 0644]
test/ARCMT/objcmt-ns-returns-inner-pointer.m.result [new file with mode: 0644]