From 9fbbf14af5582db9f2add3f66bf3da05fe8994a6 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 18 Oct 2011 15:13:11 +0000 Subject: [PATCH] [libclang] Index method references. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142353 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/IndexBody.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.40.0