Skip to content

Commit 08a50bd

Browse files
[clang-doc] Use llvm::any_of (NFC) (#141315)
1 parent 8323335 commit 08a50bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang-tools-extra/clang-doc/HTMLGenerator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,8 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {
692692
std::vector<std::unique_ptr<TagNode>> Out;
693693
std::string EnumType = I.Scoped ? "enum class " : "enum ";
694694
// Determine if enum members have comments attached
695-
bool HasComments = std::any_of(
696-
I.Members.begin(), I.Members.end(),
697-
[](const EnumValueInfo &M) { return !M.Description.empty(); });
695+
bool HasComments = llvm::any_of(
696+
I.Members, [](const EnumValueInfo &M) { return !M.Description.empty(); });
698697
std::unique_ptr<TagNode> Table =
699698
std::make_unique<TagNode>(HTMLTag::TAG_TABLE);
700699
std::unique_ptr<TagNode> THead =

0 commit comments

Comments
 (0)