mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-08 02:53:12 +02:00
Fix for 170464: Can't disable binary parser
This commit is contained in:
parent
5894ebf4d9
commit
d5a4e217b6
1 changed files with 4 additions and 4 deletions
|
@ -319,15 +319,12 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
|||
}
|
||||
if (CoreModel.isValidTranslationUnitName(cproject.getProject(), fileName)) {
|
||||
celement = cfolder.getTranslationUnit(fileName);
|
||||
} else {
|
||||
IBinaryFile bin = createBinaryFile(file);
|
||||
if (bin != null)
|
||||
celement = create(file, bin, cproject);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// check for binary on output entry
|
||||
if (celement == null && cproject.isOnOutputEntry(file)) {
|
||||
IBinaryFile bin = createBinaryFile(file);
|
||||
if (bin != null)
|
||||
|
@ -524,6 +521,9 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
|||
}
|
||||
parsers = new BinaryParserConfig[list.size()];
|
||||
list.toArray(parsers);
|
||||
} else {
|
||||
// no parser configured
|
||||
parsers = new BinaryParserConfig[0];
|
||||
}
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue