]> granicus.if.org Git - clang/commit
Consolidate ObjC lookupPrivateMethod methods from Sema and DeclObjC.
authorAnna Zaks <ganna@apple.com>
Fri, 27 Jul 2012 19:07:44 +0000 (19:07 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 27 Jul 2012 19:07:44 +0000 (19:07 +0000)
commite61354b274ec5aa6acf3d15271896ce7596bb123
tree4ee47b68641a09d05b0cee78cd226d52b1f97761
parentbccc594946d439351174831949a6a2cf7ff04f66
Consolidate ObjC lookupPrivateMethod methods from Sema and DeclObjC.

Also, fix a subtle bug, which occurred due to lookupPrivateMethod
defined in DeclObjC.h not looking up the method inside parent's
categories.

Note, the code assumes that Class's parent object has the same methods
as what's in the Root class of a the hierarchy, which is a heuristic
that might not hold for hierarchies which do not descend from NSObject.
Would be great to fix this in the future.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160885 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
include/clang/Sema/Sema.h
lib/AST/DeclObjC.cpp
lib/Sema/SemaExprMember.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaStmt.cpp
test/SemaObjC/getter-setter-defined-in-category-of-parent.m [new file with mode: 0644]
test/SemaObjC/property-impl-misuse.m