summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-change-namespace/white-list.cpp
blob: 48e3a78a0e057cd657e80885b47274601bf0009f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: echo "^std::.*$" > %T/white-list.txt
// RUN: clang-change-namespace -old_namespace "na::nb" -new_namespace "x::y" --file_pattern ".*" --whitelist_file %T/white-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
}
}
OpenPOWER on IntegriCloud