File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,9 @@ int main(int argc, char *argv[]) {
57
57
llvm::sort (Entries);
58
58
59
59
unsigned LargestValue =
60
- std::max_element (Entries.begin (), Entries.end (),
61
- [](const auto &Entry0, const auto &Entry1) {
62
- return Entry0.second .size () < Entry1.second .size ();
63
- })
64
- ->second .size ();
60
+ llvm::max_element (Entries, [](const auto &Entry0, const auto &Entry1) {
61
+ return Entry0.second .size () < Entry1.second .size ();
62
+ })->second .size ();
65
63
66
64
std::error_code Ec;
67
65
llvm::raw_fd_ostream Os (argv[2 ], Ec);
Original file line number Diff line number Diff line change @@ -333,11 +333,10 @@ static void addPlaceholderArgs(const LambdaProperties &LP,
333
333
334
334
ArrayRef<BindArgument> Args = LP.BindArguments ;
335
335
336
- const auto *MaxPlaceholderIt =
337
- std::max_element (Args.begin (), Args.end (),
338
- [](const BindArgument &B1, const BindArgument &B2) {
339
- return B1.PlaceHolderIndex < B2.PlaceHolderIndex ;
340
- });
336
+ const auto *MaxPlaceholderIt = llvm::max_element (
337
+ Args, [](const BindArgument &B1, const BindArgument &B2) {
338
+ return B1.PlaceHolderIndex < B2.PlaceHolderIndex ;
339
+ });
341
340
342
341
// Placeholders (if present) have index 1 or greater.
343
342
if (!PermissiveParameterList && (MaxPlaceholderIt == Args.end () ||
You can’t perform that action at this time.
0 commit comments