From 61d39595b472045164c181be36223d3c5aae07ab Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Tue, 28 Nov 2017 13:54:52 +0000 Subject: [clang-tidy] Fix tests for ReplaceRandomShuffleCheck Patch by: Daniel Kolozsvari! Differential Revision: https://reviews.llvm.org/D40516 llvm-svn: 319170 --- .../test/clang-tidy/modernize-replace-random-shuffle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang-tools-extra/test/clang-tidy/modernize-replace-random-shuffle.cpp') 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 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()); -- cgit v1.2.3