From 7154466fc457c1b7153419f3ad45c4d80bbc6b4a Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 5 Jul 2016 07:49:31 +0000 Subject: [ASTMatchers] New forEachOverriden matcher. Matches methods overridden by the given method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274531 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclCXX.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/clang/AST/DeclCXX.h') diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index a8f00cb327..66acfee60d 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -16,6 +16,7 @@ #ifndef LLVM_CLANG_AST_DECLCXX_H #define LLVM_CLANG_AST_DECLCXX_H +#include "clang/AST/ASTContext.h" #include "clang/AST/ASTUnresolvedSet.h" #include "clang/AST/Attr.h" #include "clang/AST/Decl.h" @@ -1829,6 +1830,8 @@ public: method_iterator begin_overridden_methods() const; method_iterator end_overridden_methods() const; unsigned size_overridden_methods() const; + typedef ASTContext::overridden_method_range overridden_method_range; + overridden_method_range overridden_methods() const; /// Returns the parent of this method declaration, which /// is the class in which this method is defined. -- cgit v1.2.3