Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334569 - Source hover for implicit constructor calls
Summary: Source hover for implicit constructor calls
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 14:15 EST by Marc-André Laperle CLA
Modified: 2011-01-19 06:23 EST (History)
1 user (show)

See Also:


Attachments
Source hover, implicit constructor call patch (2.20 KB, patch)
2011-01-17 20:45 EST, Marc-André Laperle CLA
aleherb+eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-01-17 14:15:59 EST
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() {}'
Comment 1 Marc-André Laperle CLA 2011-01-17 20:45:10 EST
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.
Comment 2 Anton Leherbauer CLA 2011-01-19 05:27:00 EST
Nice, thanks. Committed to HEAD.
Comment 3 CDT Genie CLA 2011-01-19 06:23:01 EST
*** 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