Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344604

Summary: Hyperlink on arguments inside macro function call underlines all the call
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-editorAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
CElementHyperLink Macro function args, patch + test malaperle: iplog-

Description Marc-André Laperle CLA 2011-05-03 12:09:04 EDT
Example:

#define Foo(a) bar(a)

int main() {
    int test;
    Foo(test);
    return 0;
}

Hold Ctrl and hover on the second 'test'. 'Foo(test)' is underlined. 

However, when clicking it opens the declaration of 'test' correctly.
Comment 1 Marc-André Laperle CLA 2011-05-04 01:36:21 EDT
Created attachment 194664 [details]
CElementHyperLink Macro function args, patch + test
Comment 2 Marc-André Laperle CLA 2011-05-04 01:45:59 EDT
Fixed in HEAD.