summaryrefslogtreecommitdiffstats
path: root/clang/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
commitb8020f0833eb99e95c049c19bf3b95957c07e9f7 (patch)
tree7058bafde0d0de55e2f6b652846735683e7a7a96 /clang/tools/index-test/index-test.cpp
parentb89c4cba7d6d8310bba93fe4da24cf543e63690f (diff)
downloadbcm5719-llvm-b8020f0833eb99e95c049c19bf3b95957c07e9f7.tar.gz
bcm5719-llvm-b8020f0833eb99e95c049c19bf3b95957c07e9f7.zip
Some changes to ASTLocation's methods
-Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() llvm-svn: 74862
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r--clang/tools/index-test/index-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp
index 37ecbd928f3..c9c08986463 100644
--- a/clang/tools/index-test/index-test.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud