[clang-tools-extra] 08a50bd - [clang-doc] Use llvm::any_of (NFC) (#141315)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 23 23:59:44 PDT 2025


Author: Kazu Hirata
Date: 2025-05-23T23:59:41-07:00
New Revision: 08a50bd457274bba9f1ced62efeb0ee52204a8c4

URL: https://github.com/llvm/llvm-project/commit/08a50bd457274bba9f1ced62efeb0ee52204a8c4
DIFF: https://github.com/llvm/llvm-project/commit/08a50bd457274bba9f1ced62efeb0ee52204a8c4.diff

LOG: [clang-doc] Use llvm::any_of (NFC) (#141315)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-doc/HTMLGenerator.cpp b/clang-tools-extra/clang-doc/HTMLGenerator.cpp
index eea9c6bcd18ad..93b9279462a89 100644
--- a/clang-tools-extra/clang-doc/HTMLGenerator.cpp
+++ b/clang-tools-extra/clang-doc/HTMLGenerator.cpp
@@ -692,9 +692,8 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {
   std::vector<std::unique_ptr<TagNode>> Out;
   std::string EnumType = I.Scoped ? "enum class " : "enum ";
   // Determine if enum members have comments attached
-  bool HasComments = std::any_of(
-      I.Members.begin(), I.Members.end(),
-      [](const EnumValueInfo &M) { return !M.Description.empty(); });
+  bool HasComments = llvm::any_of(
+      I.Members, [](const EnumValueInfo &M) { return !M.Description.empty(); });
   std::unique_ptr<TagNode> Table =
       std::make_unique<TagNode>(HTMLTag::TAG_TABLE);
   std::unique_ptr<TagNode> THead =


        


More information about the cfe-commits mailing list