| 1 | // RUN: echo "^std::.*$" > %T/allow-list.txt |
| 2 | // RUN: clang-change-namespace -old_namespace "na::nb" -new_namespace "x::y" --file_pattern ".*" --allowed_file %T/allow-list.txt %s -- | sed 's,// CHECK.*,,' | FileCheck %s |
| 3 | |
| 4 | #include "Inputs/fake-std.h" |
| 5 | |
| 6 | // CHECK: namespace x { |
| 7 | // CHECK-NEXT: namespace y { |
| 8 | namespace na { |
| 9 | namespace nb { |
| 10 | void f() { |
| 11 | std::STD x1; |
| 12 | STD x2; |
| 13 | // CHECK: {{^}} std::STD x1;{{$}} |
| 14 | // CHECK-NEXT: {{^}} STD x2;{{$}} |
| 15 | } |
| 16 | // CHECK: } // namespace y |
| 17 | // CHECK-NEXT: } // namespace x |
| 18 | } |
| 19 | } |
| 20 | |