From: Argyrios Kyrtzidis Date: Tue, 18 Oct 2011 15:13:11 +0000 (+0000) Subject: [libclang] Index method references. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fbbf14af5582db9f2add3f66bf3da05fe8994a6;p=clang [libclang] Index method references. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142353 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/IndexBody.cpp b/tools/libclang/IndexBody.cpp index e02a4fa81a..b2ffb99267 100644 --- a/tools/libclang/IndexBody.cpp +++ b/tools/libclang/IndexBody.cpp @@ -63,6 +63,12 @@ public: IndexCtx.handleReference(D, E->getLocation(), 0, ParentDC, E); return true; } + + bool VisitObjCMessageExpr(ObjCMessageExpr *E) { + if (ObjCMethodDecl *MD = E->getMethodDecl()) + IndexCtx.handleReference(MD, E->getSelectorStartLoc(), 0, ParentDC, E); + return true; + } }; } // anonymous namespace