summaryrefslogtreecommitdiffstats
path: root/clang/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:41:46 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:41:46 +0000
commit2eff90515f7b94be9883f2ac361520866ee869df (patch)
treef09ab629d56dcc0dbb8a19e61a1c24a978d1807c /clang/tools/index-test/index-test.cpp
parent82c80a59ee7c0f8a474cf9e4d195eef2417d127b (diff)
downloadbcm5719-llvm-2eff90515f7b94be9883f2ac361520866ee869df.tar.gz
bcm5719-llvm-2eff90515f7b94be9883f2ac361520866ee869df.zip
Support ObjC methods as Entities.
llvm-svn: 77547
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r--clang/tools/index-test/index-test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp
index 037221fcef5..fd522d54d05 100644
--- a/clang/tools/index-test/index-test.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud