llvm::sort(C.begin(), C.end()) -> llvm::sort(C)

The convenience wrapper in STLExtras is available since rL342102.

llvm-svn: 343166
This commit is contained in:
Fangrui Song 2018-09-27 04:19:29 +00:00
parent edcb29349a
commit 8b9540379e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ MagicNumbersCheck::MagicNumbersCheck(StringRef Name, ClangTidyContext *Context)
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.