]> granicus.if.org Git - clang/commitdiff
[libclang] For:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 23 Jan 2012 21:28:38 +0000 (21:28 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 23 Jan 2012 21:28:38 +0000 (21:28 +0000)
@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

tools/libclang/IndexingContext.cpp

index a124cbdff52ed52644bf6a737e345f19ba78edf2..768863728a2f92c8639c28e562a8871d01598bcc 100644 (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;