Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333941 - Missing semicolon doesn't show squiggly line
Summary: Missing semicolon doesn't show squiggly line
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 00:32 EST by Marc-André Laperle CLA
Modified: 2011-01-27 05:23 EST (History)
1 user (show)

See Also:


Attachments
fix (5.56 KB, patch)
2011-01-26 11:55 EST, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-01-11 00:32:57 EST
As a consequence of the solution in bug 314593, some missing semicolon syntax errors don't show a squiggly line anymore. 

For example:

printf()
return;

There will be an icon in the vertical ruler but no squiggly line. I find that when I'm typing, I'm paying more attention to the squiggly lines than the vertical ruler, so I miss it. I would be great if it could look like JDT, see
https://bugs.eclipse.org/bugs/attachment.cgi?id=170127
Comment 1 Markus Schorn CLA 2011-01-26 11:54:06 EST
JDT seems to mark the last token before the missing semicolon. A similar solution for c/c++ is hard to accomplish. We could mark the last character
before the missing semicolon, though.
Comment 2 Markus Schorn CLA 2011-01-26 11:55:50 EST
Created attachment 187654 [details]
fix
Comment 3 Markus Schorn CLA 2011-01-26 11:58:29 EST
Fixed in 8.0 > 20110126.