Skip to content

Commit e006936

Browse files
[clang-tidy] Use llvm::less_second (NFC) (llvm#136396)
1 parent 68cef49 commit e006936

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,7 @@ void UseStdNumbersCheck::check(const MatchFinder::MatchResult &Result) {
415415
return;
416416
}
417417

418-
llvm::sort(MatchedLiterals, [](const auto &LHS, const auto &RHS) {
419-
return std::get<1>(LHS) < std::get<1>(RHS);
420-
});
418+
llvm::sort(MatchedLiterals, llvm::less_second());
421419

422420
const auto &[Constant, Diff, Node] = MatchedLiterals.front();
423421

0 commit comments

Comments
 (0)