Bug 452809 - "Refactor -> Implement method" doesn't qualify enum
Summary: "Refactor -> Implement method" doesn't qualify enum
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 9.11.0   Edit
Assignee: Project Inbox CLA
QA Contact: Sergey Prigogin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-23 08:02 EST by soman namos CLA
Modified: 2020-01-25 01:49 EST (History)
3 users (show)

See Also:


Attachments
Bug's screenshot (1.46 MB, image/png)
2014-11-23 08:02 EST, soman namos CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description soman namos CLA 2014-11-23 08:02:21 EST
Created attachment 248845 [details]
Bug's screenshot

IDE doesn't qualify an enum when generating a method.
Steps to reproduce:
1) Add class to a project. For example a class Test. We will get test.h and test.cpp files.
2) Open a header and create an enum in a class Test. For example enum Color {red, blue}; Then create a func 'Color getColor() const;'
3) Choose 'Implement method...' and preview will show us the code to be generated. The code has wrong return type: enum is out of scope. There should be Test::Color instead of Color.
Comment 1 Eclipse Genie CLA 2020-01-20 12:41:17 EST
New Gerrit change created: https://git.eclipse.org/r/156210