From: Argyrios Kyrtzidis Date: Mon, 23 Jan 2012 21:28:38 +0000 (+0000) Subject: [libclang] For: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05b7846d871fb0d3229e4b30fa5935bc858f3547;p=clang [libclang] For: @implementation I(cat) suppress subsequent references to 'I'. rdar://10568103 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/IndexingContext.cpp b/tools/libclang/IndexingContext.cpp index a124cbdff5..768863728a 100644 --- a/tools/libclang/IndexingContext.cpp +++ b/tools/libclang/IndexingContext.cpp @@ -465,6 +465,9 @@ bool IndexingContext::handleObjCCategoryImpl(const ObjCCategoryImplDecl *D) { SourceLocation CategoryLoc = D->getCategoryNameLoc(); getEntityInfo(IFaceD, ClassEntity, SA); + if (suppressRefs()) + markEntityOccurrenceInFile(IFaceD, ClassLoc); + CatDInfo.ObjCCatDeclInfo.containerInfo = &CatDInfo.ObjCContDeclInfo; if (IFaceD) { CatDInfo.ObjCCatDeclInfo.objcClass = &ClassEntity;