summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/cpp11-migrate
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-07-22 21:03:56 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-07-22 21:03:56 +0000
commit29e449f22280b8c15619e5b3e9df30f1ae9dfb0a (patch)
tree83250c1587ab42fc65774d7be76c2b6e10dd6a8a /clang-tools-extra/test/cpp11-migrate
parent476f38a0c28f3cf94535b9eed2e2b2929f075c91 (diff)
downloadbcm5719-llvm-29e449f22280b8c15619e5b3e9df30f1ae9dfb0a.tar.gz
bcm5719-llvm-29e449f22280b8c15619e5b3e9df30f1ae9dfb0a.zip
Revert "cp11-migrate: Integration with LibFormat"
This reverts commit r186866. This breaks the build and the original author Guillaume Papin <guillaume.papin@epitech.eu> asked me to revert so he could look at it more with revane. llvm-svn: 186873
Diffstat (limited to 'clang-tools-extra/test/cpp11-migrate')
-rw-r--r--clang-tools-extra/test/cpp11-migrate/Core/Reformatting.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/Core/Reformatting.cpp b/clang-tools-extra/test/cpp11-migrate/Core/Reformatting.cpp
deleted file mode 100644
index 0b09cc87c26..00000000000
--- a/clang-tools-extra/test/cpp11-migrate/Core/Reformatting.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: not cpp11-migrate -format-style=FOO -use-auto %t.cpp -- -std=c++11
-// RUN: not cpp11-migrate -format-style=/tmp/ -use-auto %t.cpp -- -std=c++11
-// RUN: cpp11-migrate -format-style=LLVM -replace-auto_ptr -loop-convert \
-// RUN: -use-auto -use-nullptr %t.cpp -- \
-// RUN: -std=c++11
-// RUN: FileCheck --strict-whitespace -input-file=%t.cpp %s
-
-#include <iostream>
-#include <memory>
-#include <vector>
-
-void take_auto_ptrs(std::auto_ptr<int>, std::auto_ptr<int>);
-
-void f_1() {
- std::auto_ptr<int> aaaaaaaa;
- std::auto_ptr<int> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
- // CHECK: {{^\ \ std::unique_ptr<int>\ aaaaaaaa;$}}
- // CHECK-NEXT: std::unique_ptr<int>
- // CHECK-NEXT: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
-
- aaaaaaaa = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
- // CHECK: aaaaaaaa =
- // CHECK-Next: std::move(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb);
-
- std::auto_ptr<int> cccccccccccccccccccccccccccc, dddddddddddddddddddddddddddd;
- // CHECK: std::unique_ptr<int> cccccccccccccccccccccccccccc,
- // CHECK-NEXT: dddddddddddddddddddddddddddd;
-
- take_auto_ptrs(cccccccccccccccccccccccccccc, dddddddddddddddddddddddddddd);
- // CHECK: take_auto_ptrs(std::move(cccccccccccccccccccccccccccc),
- // CHECK-NEXT: std::move(dddddddddddddddddddddddddddd));
-}
-
-// Test loop-convert (and potentially use-auto)
-void f_2(const std::vector<int> &Vect) {
- for (std::vector<int>::const_iterator I = Vect.begin(), E = Vect.end();
- I != E; ++I)
- std::cout << *I << std::endl;
- // CHECK: for (auto const &elem : Vect)
- // CHECK-NEXT: std::cout << elem << std::endl;
-}
OpenPOWER on IntegriCloud