Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336444 - Renaming enum class elements does not work across multiple files
Summary: Renaming enum class elements does not work across multiple files
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Sergey Prigogin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-06 04:13 EST by Nathan Ridge CLA
Modified: 2012-08-30 03:53 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2011-02-06 04:13:52 EST
Here is test.hpp:

enum class my_enum {foo};


Here is test.cpp:

#include "test.hpp"

void f()
{
    my_enum m = my_enum::foo;
}


If I now rename "foo" to "bar" (whether from test.hpp or test.hpp), the name in the other file one does not change.

It works fine if everything is in same file, or if it's just a regular enum as opposed to enum class.
Comment 1 Nathan Ridge CLA 2012-08-30 03:53:05 EDT
Works with the current master.