Author: maskray
Date: Wed Sep 26 21:19:29 2018
New Revision: 343166

URL: http://llvm.org/viewvc/llvm-project?rev=343166&view=rev
Log:
llvm::sort(C.begin(), C.end()) -> llvm::sort(C)

The convenience wrapper in STLExtras is available since rL342102.

Modified:
    clang-tools-extra/trunk/clang-tidy/readability/MagicNumbersCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/readability/MagicNumbersCheck.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/readability/MagicNumbersCheck.cpp?rev=343166&r1=343165&r2=343166&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/readability/MagicNumbersCheck.cpp 
(original)
+++ clang-tools-extra/trunk/clang-tidy/readability/MagicNumbersCheck.cpp Wed 
Sep 26 21:19:29 2018
@@ -66,7 +66,7 @@ MagicNumbersCheck::MagicNumbersCheck(Str
   IgnoredIntegerValues.resize(IgnoredIntegerValuesInput.size());
   llvm::transform(IgnoredIntegerValuesInput, IgnoredIntegerValues.begin(),
                   [](const std::string &Value) { return std::stoll(Value); });
-  llvm::sort(IgnoredIntegerValues.begin(), IgnoredIntegerValues.end());
+  llvm::sort(IgnoredIntegerValues);
 
   if (!IgnoreAllFloatingPointValues) {
     // Process the set of ignored floating point values.


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to