diff options
-rw-r--r-- | tools/libclang/IndexBody.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |