From 755c6b42154e7c2225d973babf84eb2587576bcd Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 6 Jul 2009 21:35:20 +0000 Subject: Some changes to ASTLocation's methods -Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74862 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/index-test/index-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/index-test/index-test.cpp') diff --git a/tools/index-test/index-test.cpp b/tools/index-test/index-test.cpp index 37ecbd928f..c9c0898646 100644 --- a/tools/index-test/index-test.cpp +++ b/tools/index-test/index-test.cpp @@ -152,7 +152,7 @@ static void ProcessNode(ASTLocation Node, IndexProvider &IdxProvider) { assert(Node.isValid()); Decl *D = 0; - if (Node.hasStmt()) { + if (Node.isStmt()) { if (DeclRefExpr *RefExpr = dyn_cast(Node.getStmt())) D = RefExpr->getDecl(); } else { -- cgit v1.2.3-18-g5258