brintos

brintos / llvm-project-archived public Read only

0
0
Text · 504 B · 3b0d5b9 Raw
20 lines · cpp
1// RUN: echo "^std::.*$" > %t.allow-list.txt2// 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 %s3 4#include "Inputs/fake-std.h"5 6// CHECK: namespace x {7// CHECK-NEXT: namespace y {8namespace na {9namespace nb {10void f() {11  std::STD x1;12  STD x2;13// CHECK: {{^}}  std::STD x1;{{$}}14// CHECK-NEXT: {{^}}  STD x2;{{$}}15}16// CHECK: } // namespace y17// CHECK-NEXT: } // namespace x18}19}20