[libclang] For:

@implementation I(cat)
suppress subsequent references to 'I'.

rdar://10568103

llvm-svn: 148730
This commit is contained in:
Argyrios Kyrtzidis 2012-01-23 21:28:38 +00:00
parent 586ade114b
commit 18dc04eba2
1 changed files with 3 additions and 0 deletions

View File

@ -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;