mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-03-28 14:56:28 +01:00
Bug 569186: Fix: Project rebuild is causing Unresolved inclusion issues
Change-Id: I9c59c6a8b5963edac7d33a35b936a161ce9eb337 Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
This commit is contained in:
parent
1d0bc6992f
commit
725ff665e7
1 changed files with 1 additions and 3 deletions
|
@ -131,7 +131,6 @@ public class CMakeBuildConfiguration extends CBuildConfiguration {
|
|||
IProject project = getProject();
|
||||
|
||||
project.deleteMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, false, IResource.DEPTH_INFINITE);
|
||||
infoPerResource = new HashMap<>();
|
||||
|
||||
try {
|
||||
|
||||
|
@ -357,14 +356,13 @@ public class CMakeBuildConfiguration extends CBuildConfiguration {
|
|||
public IScannerInfo getScannerInformation(IResource resource) {
|
||||
if (infoPerResource == null) {
|
||||
// no build was run yet, nothing detected
|
||||
infoPerResource = new HashMap<>();
|
||||
try {
|
||||
processCompileCommandsFile(null, new NullProgressMonitor());
|
||||
} catch (CoreException e) {
|
||||
Activator.log(e);
|
||||
}
|
||||
}
|
||||
return infoPerResource.get(resource);
|
||||
return infoPerResource == null ? null : infoPerResource.get(resource);
|
||||
}
|
||||
|
||||
private void setScannerInformation(Map<IResource, IScannerInfo> infoPerResource) {
|
||||
|
|
Loading…
Add table
Reference in a new issue