[clang-tools-extra] r189770 - Update tests to reflect clang r189769 which changes the printing of
Chandler Carruth
chandlerc at gmail.com
Mon Sep 2 12:21:12 PDT 2013
Author: chandlerc
Date: Mon Sep 2 14:21:12 2013
New Revision: 189770
URL: http://llvm.org/viewvc/llvm-project?rev=189770&view=rev
Log:
Update tests to reflect clang r189769 which changes the printing of
'auto const' to 'const auto'.
Modified:
clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/iterator.cpp
clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/naming-conflict.cpp
clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/nesting.cpp
clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/single-iterator.cpp
Modified: clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/iterator.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/iterator.cpp?rev=189770&r1=189769&r2=189770&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/iterator.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/iterator.cpp Mon Sep 2 14:21:12 2013
@@ -143,14 +143,14 @@ void different_type() {
for (S::const_iterator it = s.begin(), e = s.end(); it != e; ++it) {
printf("s has value %d\n", (*it).x);
}
- // CHECK: for (auto const & elem : s)
+ // CHECK: for (const auto & elem : s)
// CHECK-NEXT: printf("s has value %d\n", (elem).x);
S *ps;
for (S::const_iterator it = ps->begin(), e = ps->end(); it != e; ++it) {
printf("s has value %d\n", (*it).x);
}
- // CHECK: for (auto const & p : *ps)
+ // CHECK: for (const auto & p : *ps)
// CHECK-NEXT: printf("s has value %d\n", (p).x);
// v.begin() returns a user-defined type 'iterator' which, since it's
Modified: clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/naming-conflict.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/naming-conflict.cpp?rev=189770&r1=189769&r2=189770&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/naming-conflict.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/naming-conflict.cpp Mon Sep 2 14:21:12 2013
@@ -44,7 +44,7 @@ void macroConflict() {
printf("s has value %d\n", (*it).x);
printf("Max of 3 and 5: %d\n", MAX(3,5));
}
- // CHECK: for (auto const & MAXs_it : MAXs)
+ // CHECK: for (const auto & MAXs_it : MAXs)
// CHECK-NEXT: printf("s has value %d\n", (MAXs_it).x);
// CHECK-NEXT: printf("Max of 3 and 5: %d\n", MAX(3,5));
Modified: clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/nesting.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/nesting.cpp?rev=189770&r1=189769&r2=189770&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/nesting.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/nesting.cpp Mon Sep 2 14:21:12 2013
@@ -63,7 +63,7 @@ void f() {
}
// The inner loop is also convertible, but doesn't need to be converted
// immediately. Update this test when that changes!
- // CHECK: for (auto const & elem : NestS) {
+ // CHECK: for (const auto & elem : NestS) {
// CHECK-NEXT: for (S::const_iterator SI = (elem).begin(), SE = (elem).end(); SI != SE; ++SI) {
// CHECK-NEXT: printf("%d", *SI);
}
Modified: clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/single-iterator.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/single-iterator.cpp?rev=189770&r1=189769&r2=189770&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/single-iterator.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/LoopConvert/single-iterator.cpp Mon Sep 2 14:21:12 2013
@@ -124,14 +124,14 @@ void different_type() {
for (S::const_iterator it = s.begin(); it != s.end(); ++it) {
printf("s has value %d\n", (*it).x);
}
- // CHECK: for (auto const & elem : s)
+ // CHECK: for (const auto & elem : s)
// CHECK-NEXT: printf("s has value %d\n", (elem).x);
S *ps;
for (S::const_iterator it = ps->begin(); it != ps->end(); ++it) {
printf("s has value %d\n", (*it).x);
}
- // CHECK: for (auto const & p : *ps)
+ // CHECK: for (const auto & p : *ps)
// CHECK-NEXT: printf("s has value %d\n", (p).x);
// v.begin() returns a user-defined type 'iterator' which, since it's
More information about the cfe-commits
mailing list