Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366228 - CTypedef and CStructure doesn't implement the toString method
Summary: CTypedef and CStructure doesn't implement the toString method
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 8.1.0   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 12:40 EST by Otavio Pontes CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments
patch to implement the proposed toString methods (2.43 KB, patch)
2011-12-09 12:43 EST, Otavio Pontes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Otavio Pontes CLA 2011-12-09 12:40:51 EST
CTypedef and CStructure classes don't contain the toString method, so when I try to use println to print them to the console it uses the toString method from Object class.
I propose implementing a toString method like the one found in several classes that implements IType interface, like CVariable, CPointerType, CLabel.
Comment 1 Otavio Pontes CLA 2011-12-09 12:43:44 EST
Created attachment 208182 [details]
patch to implement the proposed toString methods
Comment 2 Sergey Prigogin CLA 2011-12-09 13:53:13 EST
I've added toString methods to CTypedef and CStructure, CVariable, CLabel, CPPLabel. Some of them may be different from the patch in attachment 208182 [details].