diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-09 18:19:01 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-09 18:19:01 +0000 |
commit | 740ae67dbf8dac44dbc8d6593a60f4f37a0a2aa5 (patch) | |
tree | 38e9efc41e49f2e32c64e82ab6cd122eb4882381 /include/clang/AST/DeclObjC.h | |
parent | ce12d2f8863588d408897602089d17c4d3c3d0e5 (diff) | |
download | clang-740ae67dbf8dac44dbc8d6593a60f4f37a0a2aa5.tar.gz clang-740ae67dbf8dac44dbc8d6593a60f4f37a0a2aa5.tar.bz2 clang-740ae67dbf8dac44dbc8d6593a60f4f37a0a2aa5.tar.xz |
Move the functionality that looks for ObjC overridden methods from
ASTContext to the ObjCMethodDecl, and have the more generic
ASTContext::getOverriddenMethods() use the ObjCMethodDecl::getOverriddenMethods()
function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclObjC.h')
-rw-r--r-- | include/clang/AST/DeclObjC.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 459e9b3500..56418d2e2c 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -417,6 +417,16 @@ public: /// method in the interface or its categories. bool isOverriding() const { return IsOverriding; } void setOverriding(bool isOverriding) { IsOverriding = isOverriding; } + + /// \brief Return overridden methods for the given \p Method. + /// + /// An ObjC method is considered to override any method in the class's + /// base classes, its protocols, or its categories' protocols, that has + /// the same selector and is of the same kind (class or instance). + /// A method in an implementation is not considered as overriding the same + /// method in the interface or its categories. + void getOverriddenMethods( + SmallVectorImpl<const ObjCMethodDecl *> &Overridden) const; // Related to protocols declared in \@protocol void setDeclImplementation(ImplementationControl ic) { |