We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68cef49 commit e006936Copy full SHA for e006936
clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
@@ -415,9 +415,7 @@ void UseStdNumbersCheck::check(const MatchFinder::MatchResult &Result) {
415
return;
416
}
417
418
- llvm::sort(MatchedLiterals, [](const auto &LHS, const auto &RHS) {
419
- return std::get<1>(LHS) < std::get<1>(RHS);
420
- });
+ llvm::sort(MatchedLiterals, llvm::less_second());
421
422
const auto &[Constant, Diff, Node] = MatchedLiterals.front();
423
0 commit comments