[clang-tools-extra] Use llvm::any_of (NFC) (#143281)
This commit is contained in:
parent
1cf1c21b84
commit
6edfc6ce6c
@ -364,9 +364,8 @@ static json::Value extractValue(const EnumInfo &I,
|
||||
Object Obj = Object();
|
||||
std::string EnumType = I.Scoped ? "enum class " : "enum ";
|
||||
EnumType += I.Name;
|
||||
bool HasComment = std::any_of(
|
||||
I.Members.begin(), I.Members.end(),
|
||||
[](const EnumValueInfo &M) { return !M.Description.empty(); });
|
||||
bool HasComment = llvm::any_of(
|
||||
I.Members, [](const EnumValueInfo &M) { return !M.Description.empty(); });
|
||||
Obj.insert({"EnumName", EnumType});
|
||||
Obj.insert({"HasComment", HasComment});
|
||||
Obj.insert({"ID", toHex(toStringRef(I.USR))});
|
||||
|
@ -34,8 +34,7 @@ AST_MATCHER(BinaryOperator,
|
||||
|
||||
AST_MATCHER(CXXOperatorCallExpr,
|
||||
hasCppOperatorAChildComparisonOperatorWithoutParen) {
|
||||
return std::any_of(Node.arg_begin(), Node.arg_end(),
|
||||
isExprAComparisonOperator);
|
||||
return llvm::any_of(Node.arguments(), isExprAComparisonOperator);
|
||||
}
|
||||
|
||||
struct ChainedComparisonData {
|
||||
|
Loading…
x
Reference in New Issue
Block a user