| Summary: | "mark all occurrencies" fails after a specific kind of code | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Germano Massullo <germano.massullo> | ||||||
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> | ||||||
| Status: | RESOLVED INVALID | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cdtdoug | ||||||
| Version: | 8.1.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Germano Massullo
Created attachment 210592 [details]
CDT components version
Created attachment 210593 [details]
Code that triggers the bug
The whole do{} loop is marked as syntax error and there is a good reason:
do {
//...
}
is no valid syntax. It should be instead:
do {
//...
} while(condition);
Mark occurrences works only with valid C/C++ code.
Sorry BUT I think that should work even if you are currently having non valid code, since you are still coding it! |