Bug 512639 - Implement method adds superfluous namespace qualifiers
Summary: Implement method adds superfluous namespace qualifiers
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-23 09:41 EST by Marc-André Laperle CLA
Modified: 2020-09-04 15:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2017-02-23 09:41:31 EST
Using master.

Sample code:

Test.h:

#ifndef TEST_H_
#define TEST_H_

namespace ns1 {
namespace ns2 {
class Test {
	void foo();
};
}
}

#endif

Test.cpp

#include "Test.h"

using namespace ns1;
using namespace ns2;

void ns1::ns2::Test::foo() { // Generated by implement method
}

In Test.cpp, the "ns1::ns2::" part is superfluous.