| Summary: | Source hover for implicit constructor calls | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc-André Laperle <malaperle> | ||||
| Component: | cdt-editor | Assignee: | Anton Leherbauer <aleherb+eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 186963 [details]
Source hover, implicit constructor call patch
This patch looks for an implicit name that resolves to a constructor and then proceeds as usual with this constructor instead.
Nice, thanks. Committed to HEAD. *** cdt cvs genie on behalf of aleherbau *** Bug 334569 - Source hover for implicit constructor calls Patch by Marc-Andre Laperle [*] CSourceHover.java 1.48 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java?root=Tools_Project&r1=1.47&r2=1.48 |
Source hover works for function and method calls but not for constructor calls. Example: class Test { public: Test() {} }; int main() { Test object; return 0; } Hover on object, you will get 'Test object;' instead of 'Test() {}'