summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-11-28 13:54:52 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-11-28 13:54:52 +0000
commit61d39595b472045164c181be36223d3c5aae07ab (patch)
tree135cd031205d3b28f13305a71de7f213fe0d2c54 /clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp
parent57eb0469847bf535276f2a6364213b1fb1c2480c (diff)
downloadbcm5719-llvm-61d39595b472045164c181be36223d3c5aae07ab.tar.gz
bcm5719-llvm-61d39595b472045164c181be36223d3c5aae07ab.zip
[clang-tidy] Fix tests for ReplaceRandomShuffleCheck
Patch by: Daniel Kolozsvari! Differential Revision: https://reviews.llvm.org/D40516 llvm-svn: 319170
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp b/clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp
index 2d4d4e6d888..019471e2a3e 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp
+++ b/clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp
@@ -34,21 +34,21 @@ int main() {
std::vector<int> vec;
std::random_shuffle(vec.begin(), vec.end());
- // CHECK-MESSAGE: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' instead
+ // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' instead
// CHECK-FIXES: std::shuffle(vec.begin(), vec.end(), std::mt19937(std::random_device()()));
std::shuffle(vec.begin(), vec.end());
random_shuffle(vec.begin(), vec.end());
- // CHECK-MESSAGE: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' instead
+ // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' instead
// CHECK-FIXES: shuffle(vec.begin(), vec.end(), std::mt19937(std::random_device()()));
std::random_shuffle(vec.begin(), vec.end(), myrandom);
- // CHECK-MESSAGE: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' and an alternative random mechanism instead
+ // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' and an alternative random mechanism instead
// CHECK-FIXES: std::shuffle(vec.begin(), vec.end(), std::mt19937(std::random_device()()));
random_shuffle(vec.begin(), vec.end(), myrandom);
- // CHECK-MESSAGE: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' and an alternative random mechanism instead
+ // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'std::random_shuffle' has been removed in C++17; use 'std::shuffle' and an alternative random mechanism instead
// CHECK-FIXES: shuffle(vec.begin(), vec.end(), std::mt19937(std::random_device()()));
shuffle(vec.begin(), vec.end());
OpenPOWER on IntegriCloud