| Summary: | Hyperlink on arguments inside macro function call underlines all the call | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc-André Laperle <malaperle> | ||||
| Component: | cdt-editor | Assignee: | 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: |
|
||||||
Created attachment 194664 [details]
CElementHyperLink Macro function args, patch + test
Fixed in HEAD. *** cdt cvs genie on behalf of mlaperle *** Bug 344604 - Hyperlink on arguments inside macro function call underlines all the call [*] HyperlinkTest.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/HyperlinkTest.java?root=Tools_Project&r1=1.13&r2=1.14 [*] CElementHyperlinkDetector.java 1.23 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CElementHyperlinkDetector.java?root=Tools_Project&r1=1.22&r2=1.23 |
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.