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

Bug 334569

Summary: Source hover for implicit constructor calls
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-editorAssignee: 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:
Description Flags
Source hover, implicit constructor call patch aleherb+eclipse: iplog+

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