[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Refactor / LocalRename / QualifiedRename.cpp
blobd9eb138e5c7638f2d87128e8ca4b91965b494356
1 // 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
3 namespace foo {
4 class A {};
6 // CHECK: namespace foo {
7 // CHECK-NEXT: class B {};
8 // CHECK-NEXT: }
10 namespace bar {
11 void f(foo::A* a) {
12 foo::A b;
14 // CHECK: void f(B* a) {
15 // CHECK-NEXT: B b;
16 // CHECK-NEXT: }
19 void f(foo::A* a) {
20 foo::A b;
22 // CHECK: void f(bar::B* a) {
23 // CHECK-NEXT: bar::B b;
24 // CHECK-NEXT: }