[cfe-commits] r148730 - /cfe/trunk/tools/libclang/IndexingContext.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Jan 23 13:28:38 PST 2012


Author: akirtzidis
Date: Mon Jan 23 15:28:38 2012
New Revision: 148730

URL: http://llvm.org/viewvc/llvm-project?rev=148730&view=rev
Log:
[libclang] For:
@implementation I(cat)
suppress subsequent references to 'I'.

rdar://10568103

Modified:
    cfe/trunk/tools/libclang/IndexingContext.cpp

Modified: cfe/trunk/tools/libclang/IndexingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexingContext.cpp?rev=148730&r1=148729&r2=148730&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexingContext.cpp (original)
+++ cfe/trunk/tools/libclang/IndexingContext.cpp Mon Jan 23 15:28:38 2012
@@ -465,6 +465,9 @@
   SourceLocation CategoryLoc = D->getCategoryNameLoc();
   getEntityInfo(IFaceD, ClassEntity, SA);
 
+  if (suppressRefs())
+    markEntityOccurrenceInFile(IFaceD, ClassLoc);
+
   CatDInfo.ObjCCatDeclInfo.containerInfo = &CatDInfo.ObjCContDeclInfo;
   if (IFaceD) {
     CatDInfo.ObjCCatDeclInfo.objcClass = &ClassEntity;





More information about the cfe-commits mailing list