Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Newbie to CDT :- On-fly syntax check
Newbie to CDT :- On-fly syntax check [message #203707] Sat, 27 October 2007 00:32 Go to next message
Eclipse UserFriend
Originally posted by: prakashpvss.gmail.com

Hi all

I am a newbie to the CDT , I expected that the on-fly syntax check to be
enabled while using the CDT editor. COming from java development this is
one of the most used features. But I m not able to figure out how to set
my prefernces to get the on the fly syntax check enabled.

Can some one help me as to how to get this done.

Thanks
PVSS
Re: Newbie to CDT :- On-fly syntax check [message #203729 is a reply to message #203707] Sat, 27 October 2007 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

Sorry, but that is not supported in CDT.
--
Derek


prakash wrote:
> Hi all
> I am a newbie to the CDT , I expected that the on-fly syntax check to be
> enabled while using the CDT editor. COming from java development this is
> one of the most used features. But I m not able to figure out how to set
> my prefernces to get the on the fly syntax check enabled.
>
> Can some one help me as to how to get this done.
>
> Thanks
> PVSS
Re: Newbie to CDT :- On-fly syntax check [message #203818 is a reply to message #203729] Mon, 29 October 2007 19:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prakashpvss.gmail.com

oh! Is it not supported ??
1) When I m trying to declare an integer the int syntax color is changing.
I got an impression that it is parsing and doing some processing to
identify keywords.

If so why isnt that CDT doesnt support on-fly syntax checking.... The
Rules of the grammar will allow us to check whether it complies to the
language or not ... Is there a specific reason why there is no on fly
syntax check ....

2) When there are errors and I have build automatically selected , Doesnt
it do an increment building and correct all my syntax errors ?

3) Do I have to rebuild every time and realise that I made a typing
mistake and go back and re do it .... ?

I m confused as to why there is no on-fly syntax check ...

Highly appreciate it if some one can give me an answer ...

Thanks
Prakash
Re: Newbie to CDT :- On-fly syntax check [message #203825 is a reply to message #203818] Mon, 29 October 2007 19:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

Basically, C was not designed for incremental compilation. There are some
IDE/compiler combinations's out there that support this, but CDT isn't one of
them (this is because CDT is designed to work with just about any C compiler and
the vast majority of C compilers don't support).

This is the difference between working with a language designed in the 70's (C)
and on designed in the 90's (Java).

1. It's relatively easy to spot keywords in the editor without parsing.
2. You have to save your file which will then cause a build of your source (if
you have build automatically set).
3. Yes.

--
Derek


prakash wrote:
> oh! Is it not supported ??
> 1) When I m trying to declare an integer the int syntax color is changing.
> I got an impression that it is parsing and doing some processing to
> identify keywords.
> If so why isnt that CDT doesnt support on-fly syntax checking.... The
> Rules of the grammar will allow us to check whether it complies to the
> language or not ... Is there a specific reason why there is no on fly
> syntax check ....
>
> 2) When there are errors and I have build automatically selected ,
> Doesnt it do an increment building and correct all my syntax errors ?
>
> 3) Do I have to rebuild every time and realise that I made a typing
> mistake and go back and re do it .... ?
> I m confused as to why there is no on-fly syntax check ...
>
> Highly appreciate it if some one can give me an answer ...
>
> Thanks
> Prakash
>
>
Re: Newbie to CDT :- On-fly syntax check [message #203922 is a reply to message #203729] Wed, 31 October 2007 12:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

Derek Morris wrote:
> Sorry, but that is not supported in CDT.
Well, it is in some sense when enabling hovers
Window->Preferences->C/C++->Editor->Hovers->Enable editor problem
annotation = true

Fabian
Re: Newbie to CDT :- On-fly syntax check [message #203945 is a reply to message #203922] Wed, 31 October 2007 20:08 Go to previous message
Eclipse UserFriend
Originally posted by: prakashpvss.gmail.com

I turned on the Editor Problem Annotation , It does some amount of syntax
check , but not using the c/C++ compiler gramamar, but based on some rules
associated with the editor.
Previous Topic:Using Xcode compiler in CDT
Next Topic:Newbie CDT :- Need Clarifications
Goto Forum:
  


Current Time: Fri Oct 18 11:32:53 GMT 2024

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

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

Back to the top