diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-10 16:57:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-10 16:57:35 +0000 |
commit | e942bbe02b6fb332d1f13d38c6e1980b416cf89a (patch) | |
tree | e1dacc15d51066da2e7d6de19f6d41ddd135fd9a /include | |
parent | 736d8a66062eeb25a4b63dcac36d1d4c261a02c4 (diff) |
When performing unqualified name lookup into a DeclContext, also look into
all of the parent DeclContexts that aren't represented within the
Scope chain. This fixes some name-lookup problems in out-of-line
definitions of members of nested classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/DeclBase.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 342eecbf57..ed609fe101 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -565,6 +565,12 @@ public: return const_cast<DeclContext*>(this)->getLexicalParent(); } + DeclContext *getLookupParent(); + + const DeclContext *getLookupParent() const { + return const_cast<DeclContext*>(this)->getLookupParent(); + } + ASTContext &getParentASTContext() const { return cast<Decl>(this)->getASTContext(); } |