mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Emergency patch for John Camelon.
This commit is contained in:
parent
c479717511
commit
80f69509e8
1 changed files with 6 additions and 3 deletions
|
@ -58,9 +58,12 @@ public class CModelBuilder {
|
|||
DOMBuilder domBuilder = new DOMBuilder();
|
||||
String code = translationUnit.getBuffer().getContents();
|
||||
Parser parser = new Parser(code, domBuilder, true);
|
||||
IProject currentProject = translationUnit.getCProject().getProject();
|
||||
boolean hasCppNature = CoreModel.getDefault().hasCCNature(currentProject);
|
||||
parser.setCppNature(hasCppNature);
|
||||
if( translationUnit.getCProject() != null )
|
||||
{
|
||||
IProject currentProject = translationUnit.getCProject().getProject();
|
||||
boolean hasCppNature = CoreModel.getDefault().hasCCNature(currentProject);
|
||||
parser.setCppNature(hasCppNature);
|
||||
}
|
||||
parser.parse();
|
||||
long startTime = System.currentTimeMillis();
|
||||
generateModelElements(domBuilder.getTranslationUnit());
|
||||
|
|
Loading…
Add table
Reference in a new issue