You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
474 B

// RUN: clang-refactor local-rename -old-qualified-name="foo::A" -new-qualified-name="bar::B" %s -- -std=c++11 2>&1 | grep -v CHECK | FileCheck %s
namespace foo {
class A {};
}
// CHECK: namespace foo {
// CHECK-NEXT: class B {};
// CHECK-NEXT: }
namespace bar {
void f(foo::A* a) {
foo::A b;
}
// CHECK: void f(B* a) {
// CHECK-NEXT: B b;
// CHECK-NEXT: }
}
void f(foo::A* a) {
foo::A b;
}
// CHECK: void f(bar::B* a) {
// CHECK-NEXT: bar::B b;
// CHECK-NEXT: }