summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/IndexDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/IndexDecl.cpp')
-rw-r--r--clang/tools/libclang/IndexDecl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp
index 67f6703e75a..b2a45306dc9 100644
--- a/clang/tools/libclang/IndexDecl.cpp
+++ b/clang/tools/libclang/IndexDecl.cpp
@@ -108,6 +108,10 @@ public:
}
bool VisitObjCImplementationDecl(ObjCImplementationDecl *D) {
+ const ObjCInterfaceDecl *Class = D->getClassInterface();
+ if (Class->isImplicitInterfaceDecl())
+ IndexCtx.handleObjCInterface(Class);
+
IndexCtx.handleObjCImplementation(D);
IndexCtx.indexTUDeclsInObjCContainer();
OpenPOWER on IntegriCloud