summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/change-namespace/lambda-function.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-03-15 11:54:01 +0000
committerNico Weber <nicolasweber@gmx.de>2019-03-15 11:54:01 +0000
commit5f5a74582f8abb2935f9a6f6df3a55dc825f5412 (patch)
tree2aa657988900c89738e4041868c6efa0193798fd /clang-tools-extra/test/change-namespace/lambda-function.cpp
parent398f9bb4341d79941b4c2ae3bd31a3f6f614e459 (diff)
downloadbcm5719-llvm-5f5a74582f8abb2935f9a6f6df3a55dc825f5412.tar.gz
bcm5719-llvm-5f5a74582f8abb2935f9a6f6df3a55dc825f5412.zip
Rename directory housing clang-change-namespace to be eponymous
Makes the name of this directory consistent with the names of the other directories in clang-tools-extra. Differential Revision: https://reviews.llvm.org/D59382 llvm-svn: 356254
Diffstat (limited to 'clang-tools-extra/test/change-namespace/lambda-function.cpp')
-rw-r--r--clang-tools-extra/test/change-namespace/lambda-function.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/clang-tools-extra/test/change-namespace/lambda-function.cpp b/clang-tools-extra/test/change-namespace/lambda-function.cpp
deleted file mode 100644
index 452983ea9c4..00000000000
--- a/clang-tools-extra/test/change-namespace/lambda-function.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// RUN: clang-change-namespace -old_namespace "na::nb" -new_namespace "x::y" --file_pattern ".*" %s -- -std=c++11 | sed 's,// CHECK.*,,' | FileCheck %s
-
-template <class T>
-class function;
-template <class R, class... ArgTypes>
-class function<R(ArgTypes...)> {
-public:
- template <typename Functor>
- function(Functor f) {}
- R operator()(ArgTypes...) const {}
-};
-
-namespace x {
-// CHECK: namespace x {
-class X {};
-}
-
-namespace na {
-namespace nb {
-// CHECK: namespace x {
-// CHECK-NEXT: namespace y {
-void f(function<void(int)> func, int param) { func(param); }
-void g() { f([](int x) {}, 1); }
-
-// x::X in function type parameter list will have translation unit context, so
-// we simply replace it with fully-qualified name.
-using TX = function<x::X(x::X)>;
-// CHECK: using TX = function<X(x::X)>;
-
-class A {};
-using TA = function<A(A)>;
-// CHECK: using TA = function<A(A)>;
-
-// CHECK: } // namespace y
-// CHECK-NEXT: } // namespace x
-}
-}
OpenPOWER on IntegriCloud