| Summary: | Multiline macros and comments cause wrong hover | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marko Tomljenovic <marko.tomljenovic> | ||||
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, malaperle, yevshif | ||||
| Version: | 8.0.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marko Tomljenovic
Works for me, I have tested using the following code:
#define TEST "Hello" /* First word */\
"world!";
void test() {
char* x= TEST // no syntax error, so the ; is picked up
}
Created attachment 213036 [details]
Hover only shows "Hello" instead of "Hello World"
Then maybe it is only a hover tooltip problem. Take a look at the attached screenshot. (In reply to comment #3) > Then maybe it is only a hover tooltip problem. Take a look at the attached > screenshot. Looks like it, it won't affect the index. (In reply to comment #4) > (In reply to comment #3) > > Then maybe it is only a hover tooltip problem. Take a look at the attached > > screenshot. > > Looks like it, it won't affect the index. Right. So it seems there is a bug in the hover. Can you please move this issue then to the right component? Thank you Starting from 8.1, the source hover is not shown when hovering on a definition, see Bug 359392. If you hover on this one: char* x= TEST then this is displayed in the source hover: "Hello" /* First word */\ "world!"; Which seems ideal to me. |