Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2016-09-09 15:01:40 +0000
committerDoug Schaefer2016-09-09 15:23:31 +0000
commit5a1828f37defe1e4852fcaa29a77ec28d2c1ac83 (patch)
treea11ebb5d2d5cd070f935968353bafa27584a86ad
parent11ff561baefe518682a578d099ce7725b1b2df3d (diff)
downloadorg.eclipse.cdt-5a1828f37defe1e4852fcaa29a77ec28d2c1ac83.tar.gz
org.eclipse.cdt-5a1828f37defe1e4852fcaa29a77ec28d2c1ac83.tar.xz
org.eclipse.cdt-5a1828f37defe1e4852fcaa29a77ec28d2c1ac83.zip
Fix scanner info cache to properly refresh resource commands.
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/build/ScannerInfoCache.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/build/ScannerInfoCache.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/build/ScannerInfoCache.java
index 0c3e94d1437..81f9ee74b7c 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/build/ScannerInfoCache.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/build/ScannerInfoCache.java
@@ -117,10 +117,9 @@ public class ScannerInfoCache {
// we're already there
return;
}
- } else {
- command.resourcePaths.add(resource.getLocation().toOSString());
- resourceMap.put(resourcePath, command);
}
+ command.resourcePaths.add(resource.getLocation().toOSString());
+ resourceMap.put(resourcePath, command);
}
}

Back to the top