1*d313cb6eSEric Christopher // RUN: echo "^std::.*$" > %T/allow-list.txt 216897e47SEric Christopher // 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 325ed42f0SEric Christopher 425ed42f0SEric Christopher #include "Inputs/fake-std.h" 525ed42f0SEric Christopher 625ed42f0SEric Christopher // CHECK: namespace x { 725ed42f0SEric Christopher // CHECK-NEXT: namespace y { 825ed42f0SEric Christopher namespace na { 925ed42f0SEric Christopher namespace nb { f()1025ed42f0SEric Christophervoid f() { 1125ed42f0SEric Christopher std::STD x1; 1225ed42f0SEric Christopher STD x2; 1325ed42f0SEric Christopher // CHECK: {{^}} std::STD x1;{{$}} 1425ed42f0SEric Christopher // CHECK-NEXT: {{^}} STD x2;{{$}} 1525ed42f0SEric Christopher } 1625ed42f0SEric Christopher // CHECK: } // namespace y 1725ed42f0SEric Christopher // CHECK-NEXT: } // namespace x 1825ed42f0SEric Christopher } 1925ed42f0SEric Christopher } 20