Bug 172200

Summary: Parameter hint proposals formatted incorrectly
Product: [Tools] CDT Reporter: Bryan Wilkinson <bryan2233>
Component: cdt-coreAssignee: Bryan Wilkinson <bryan2233>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: contributed
Version: 4.0   
Target Milestone: 4.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch bjorn.freeman-benson: iplog+

Description Bryan Wilkinson CLA 2007-01-30 13:25:20 EST
The proposal popup obtained by pressing CTRL-SHFT-Space between the parentheses of a function call or a function style macro should display its results in the same way that completion proposals are displayed.

Currently, the proposals are formatted like so:

	func_name()

But they should be formatted in the following way:

	image func_name(parameters) return_type
Comment 1 Bryan Wilkinson CLA 2007-01-30 13:36:36 EST
Created attachment 57824 [details]
proposed patch

This patch alters the DOMCompletionContributor to construct context information objects with a different constructor (one that accepts an image).  Also, a different string (the display string for code completion) is passed to the constructor as the context display string.
Comment 2 Anton Leherbauer CLA 2007-01-31 03:35:54 EST
Perfect!
Comment 3 Anton Leherbauer CLA 2007-01-31 03:36:48 EST
Patch applied to HEAD.