aboutsummaryrefslogtreecommitdiff
path: root/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-06 21:35:20 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-06 21:35:20 +0000
commit755c6b42154e7c2225d973babf84eb2587576bcd (patch)
tree1f2e952ec68f69f37524d09c12439ab08e37e52b /tools/index-test/index-test.cpp
parent8fb3333d45ab3b327766e26310581cacf43fb374 (diff)
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
Diffstat (limited to 'tools/index-test/index-test.cpp')
-rw-r--r--tools/index-test/index-test.cpp2
1 files changed, 1 insertions, 1 deletions
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<DeclRefExpr>(Node.getStmt()))
D = RefExpr->getDecl();
} else {