Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2004-05-28 15:29:24 -0400
committerAndrew Niefer2004-05-28 15:29:24 -0400
commita38caa6521bc21f2d55e223991dbd37223b1daae (patch)
treefb287302d9b20f430b4dbfded245a25c32f6d2cd
parente7fadca73f572ac662b2f67b3e916398d8018abe (diff)
downloadorg.eclipse.cdt-a38caa6521bc21f2d55e223991dbd37223b1daae.tar.gz
org.eclipse.cdt-a38caa6521bc21f2d55e223991dbd37223b1daae.tar.xz
org.eclipse.cdt-a38caa6521bc21f2d55e223991dbd37223b1daae.zip
don't report problems for circular inclusions
-rw-r--r--core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
index f6c9823062..d200f3ef86 100644
--- a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
+++ b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
@@ -749,7 +749,10 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
}
public boolean shouldRecordProblem( IProblem problem ){
- return problem.checkCategory( IProblem.PREPROCESSOR_RELATED );
+ if( problem.checkCategory( IProblem.PREPROCESSOR_RELATED ) ){
+ return problem.getID() != IProblem.PREPROCESSOR_CIRCULAR_INCLUSION;
+ }
+ return false;
}
public void requestRemoveMarkers(IFile resource, IFile originator ){

Back to the top