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

Bug 336444

Summary: Renaming enum class elements does not work across multiple files
Product: [Tools] CDT Reporter: Nathan Ridge <zeratul976>
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: RESOLVED FIXED QA Contact: Sergey Prigogin <eclipse.sprigogin>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.