[clang-tools-extra] r369674 - Retire llvm::less/equal in favor of C++14 std::less<>/equal_to<>.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 10:31:59 PDT 2019
Author: d0k
Date: Thu Aug 22 10:31:59 2019
New Revision: 369674
URL: http://llvm.org/viewvc/llvm-project?rev=369674&view=rev
Log:
Retire llvm::less/equal in favor of C++14 std::less<>/equal_to<>.
Modified:
clang-tools-extra/trunk/clang-doc/Representation.h
Modified: clang-tools-extra/trunk/clang-doc/Representation.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/Representation.h?rev=369674&r1=369673&r2=369674&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-doc/Representation.h (original)
+++ clang-tools-extra/trunk/clang-doc/Representation.h Thu Aug 22 10:31:59 2019
@@ -61,7 +61,7 @@ struct CommentInfo {
return false;
return std::equal(Children.begin(), Children.end(), Other.Children.begin(),
- llvm::deref<llvm::equal>{});
+ llvm::deref<std::equal_to<>>{});
}
// This operator is used to sort a vector of CommentInfos.
@@ -82,7 +82,7 @@ struct CommentInfo {
if (FirstCI == SecondCI) {
return std::lexicographical_compare(
Children.begin(), Children.end(), Other.Children.begin(),
- Other.Children.end(), llvm::deref<llvm::less>());
+ Other.Children.end(), llvm::deref<std::less<>>());
}
return false;
More information about the cfe-commits
mailing list