aboutsummaryrefslogtreecommitdiff
path: root/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/index-test/index-test.cpp')
-rw-r--r--tools/index-test/index-test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/index-test/index-test.cpp b/tools/index-test/index-test.cpp
index 037221fcef..fd522d54d0 100644
--- a/tools/index-test/index-test.cpp
+++ b/tools/index-test/index-test.cpp
@@ -150,6 +150,8 @@ static void ProcessASTLocation(ASTLocation ASTLoc, Indexer &Idxer) {
isDef = FD->isThisDeclarationADefinition();
else if (const VarDecl *VD = dyn_cast<VarDecl>(D))
isDef = VD->getInit() != 0;
+ else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
+ isDef = MD->isThisDeclarationADefinition();
if (isDef)
I->print(OS);