From 55fab260ca1c4b71dccf59b80ed8eb24d619125e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 26 Sep 2018 22:16:28 +0000 Subject: llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...) Summary: The convenience wrapper in STLExtras is available since rL342102. Reviewers: rsmith, #clang, dblaikie Reviewed By: rsmith, #clang Subscribers: mgrang, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D52576 llvm-svn: 343147 --- clang/unittests/Basic/VirtualFileSystemTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp') diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index 7f89d751c7f..83317e58f72 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -553,8 +553,8 @@ static void checkContents(DirIter I, ArrayRef ExpectedOut) { for (DirIter E; !EC && I != E; I.increment(EC)) InputToCheck.push_back(I->path()); - llvm::sort(InputToCheck.begin(), InputToCheck.end()); - llvm::sort(Expected.begin(), Expected.end()); + llvm::sort(InputToCheck); + llvm::sort(Expected); EXPECT_EQ(InputToCheck.size(), Expected.size()); unsigned LastElt = std::min(InputToCheck.size(), Expected.size()); -- cgit v1.2.3