Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to make customized CDT editor take effect at the very start?
icon5.gif  How to make customized CDT editor take effect at the very start? [message #775913] Fri, 06 January 2012 23:22
hao shen is currently offline hao shenFriend
Messages: 3
Registered: January 2012
Junior Member
We modified a customized CDT editor based on CDT8.0, but the customized editor does not take effect at the very start.

Background:
We have a language extended from standard C with some specific grammars. Now we are working on making CDT editor support this language.

Problem details:
Currently, the main modification is done. But we are facing a pitfall. That is when we open a file in the customized CDT editor, the lines with our own grammars will be reported as symtax errors at the very start. Then after several seconds, these lines will be parsed correctly and the syntax errors will go away.

Our main change to support the grammar happens in two files,
org.eclipse.cdt/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
org.eclipse.cdt/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java.
There are several little changes in the other related files.

I guess this issue is related with dom, but with no confidence.

Question:
Is there any modification needed for making the editor take effect at the very start?

[Updated on: Fri, 06 January 2012 23:24]

Report message to a moderator

Previous Topic:Properties -> C/C++ General -> Export Settings (purpose)
Next Topic:Shared coding style in CDT
Goto Forum:
  


Current Time: Fri Apr 19 14:14:38 GMT 2024

Powered by FUDForum. Page generated in 0.01834 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top