diff options
author | Craig Silverstein <csilvers2000@yahoo.com> | 2010-07-12 23:30:43 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers2000@yahoo.com> | 2010-07-12 23:30:43 +0000 |
commit | cdbcad09c806aba04fab15c91a9ff537fa38a2f5 (patch) | |
tree | 6c8f095b37950be465eacb6bfaf894917095497a | |
parent | f9ea1f392ab8946f7bfc3f98802a8e5e6fe073f3 (diff) |
We should not be recursing over the shadow definitions in UsingDecl --
they're not something the user typed (at least, not here).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108212 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/RecursiveASTVisitor.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index cf17f53ddc..0853dddbe9 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -1062,11 +1062,6 @@ DEF_TRAVERSE_DECL(ObjCPropertyDecl, { DEF_TRAVERSE_DECL(UsingDecl, { TRY_TO(TraverseNestedNameSpecifier(D->getTargetNestedNameDecl())); - // FIXME: should we be iterating over the shadows? - for (UsingDecl::shadow_iterator I = D->shadow_begin(), E = D->shadow_end(); - I != E; ++I) { - TRY_TO(TraverseDecl(*I)); - } }) DEF_TRAVERSE_DECL(UsingDirectiveDecl, { |