aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/ASTVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Index/ASTVisitor.h')
-rw-r--r--lib/Index/ASTVisitor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Index/ASTVisitor.h b/lib/Index/ASTVisitor.h
index 330bf016d3..11089f044d 100644
--- a/lib/Index/ASTVisitor.h
+++ b/lib/Index/ASTVisitor.h
@@ -94,6 +94,10 @@ public:
Visit(*I);
}
+ void VisitBlockExpr(BlockExpr *Node) {
+ Visit(Node->getBlockDecl());
+ }
+
void VisitStmt(Stmt *Node) {
for (Stmt::child_iterator
I = Node->child_begin(), E = Node->child_end(); I != E; ++I)