aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers2000@yahoo.com>2010-07-12 23:30:43 +0000
committerCraig Silverstein <csilvers2000@yahoo.com>2010-07-12 23:30:43 +0000
commitcdbcad09c806aba04fab15c91a9ff537fa38a2f5 (patch)
tree6c8f095b37950be465eacb6bfaf894917095497a
parentf9ea1f392ab8946f7bfc3f98802a8e5e6fe073f3 (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.h5
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, {