llvm-capstone/clang-tools-extra/test/clang-change-namespace/allow-list.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
504 B
C++
Raw Permalink Normal View History

2020-06-20 06:30:16 +00:00
// RUN: echo "^std::.*$" > %T/allow-list.txt
2020-06-20 06:13:28 +00:00
// 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
#include "Inputs/fake-std.h"
// CHECK: namespace x {
// CHECK-NEXT: namespace y {
namespace na {
namespace nb {
void f() {
std::STD x1;
STD x2;
// CHECK: {{^}} std::STD x1;{{$}}
// CHECK-NEXT: {{^}} STD x2;{{$}}
}
// CHECK: } // namespace y
// CHECK-NEXT: } // namespace x
}
}