Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-02-26 12:50:49 +0000
committerMarkus Schorn2008-02-26 12:50:49 +0000
commit364c506b2693f38146cfc7c2564b70f6c12f1fee (patch)
treea16ff97f6ddaa1698e5e4214f58149f25eae6221 /core/org.eclipse.cdt.core/parser
parent33d68a6603e353f9478bbc4253593c34019e4d51 (diff)
downloadorg.eclipse.cdt-364c506b2693f38146cfc7c2564b70f6c12f1fee.tar.gz
org.eclipse.cdt-364c506b2693f38146cfc7c2564b70f6c12f1fee.tar.xz
org.eclipse.cdt-364c506b2693f38146cfc7c2564b70f6c12f1fee.zip
Indexer to parse headers in context of a source, bug 220358.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java
index 34f75f4f778..a38c15f5111 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java
@@ -8,7 +8,6 @@
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
-
package org.eclipse.cdt.internal.core.pdom;
import java.net.URI;
@@ -543,7 +542,7 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
}
try {
Object context= fResolver.getInputFile(ifile.getLocation());
- if (context != null) {
+ if (context != null && fResolver.isSourceUnit(context)) {
contextMap.put(ifile, context);
return context;
}

Back to the top