Bug 4687 - Odd coloring for Source Window on some files
Summary: Odd coloring for Source Window on some files
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Rick Moseley
Depends on:
Blocks: 1633 3392
  Show dependency treegraph
Reported: 2007-06-21 19:30 UTC by Rick Moseley
Modified: 2007-07-03 19:03 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2007-06-21 19:30:31 UTC
The coloring for the source window does not appear correct in some source files.
 I saw this while debugging for bz #4462.  While the coloring appeared to be
95%+ correct, there were random instances of mis-marked code.  This indicates we
are interpreting info coming back from the CDTParser incorrectly.

I saw this while trying to debug a "funit-child" process.
Comment 1 Rick Moseley 2007-07-03 19:03:44 UTC
This was a problem with the CDTParser not being able to handle source lines with
macros on them properly. Looking at the source of the parser we imported from
the Eclipse CDT project there are a few places in the code where the handling of
macros have "TODO" comments placed around them.  Further exploration showed
improper information was being passed back from the parser indicating where
variables/functions/etc. were located.

Instead of trying to fix the problems inside the parser(which could take weeks
IMHO), I added a couple of methods to the CDT parser that corrects the problems
of locating the variables/parameters/etc.

Hopefully we can look forward to importing a newer version of the CDT parser
sometime from the Eclipse project.