Hello all. Does anyone have any thoughts on the mail I sent out this past
Friday? Please see below. Thanks!
-------------
Javier
-----Original Message-----
From: Oviedo, Javier
Sent: Friday, June 18, 2004 10:01 AM
To: 'cedet-devel@... '
Cc: 'Berndl, Klaus'
Subject: CEDET - Semantic parsing problem...
Hello all. I believe this is a semantic problem, but please tell me if I'm
incorrect and I'll post it to the other list.
I'm using cedet-1.0beta2b with ecb2.25.
I'm seeing a problem with a particular statement in a C-file. In it's
current form, the methods buffer in ecb does not show any functions that are
in the c-file. In the acual buffer I see those red underlines everywhere in
this buffer. From my understanding, those come from
semantic-show-unmatched-syntax-mode and this in turn causes the methods
buffer to not show any methods. I have narrowed it down to a particular
expression.
Currently there is the #ifdef expression shown immediately below. This sits
near the top of the file. This is a legal expression in C and the compiler
has no problems handling it. When I have this in the file, semantic seems to
now understand the syntax.
#if ((SOME_POUND_DEFINE1 * SOME_POUND_DEFINE2) > \
(SOME_POUND_DEFINE3))
# error We should never get here!!
#endif
If I now modify the #ifdef to look like this, semantic seems to like it and
the methods now appear in the ecb methods buffer. I do not see any of those
annoying red underlines. :-)
#if ((SOME_POUND_DEFINE1 * SOME_POUND_DEFINE2) > (SOME_POUND_DEFINE3))
# error We should never get here!!
#endif
Thoughts/comments anyone??
Thanks.
-------------
Javier
|