[clang] f523a55 - [Sema] Use llvm::all_of (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 20 18:57:48 PST 2024


Author: Kazu Hirata
Date: 2024-01-20T18:57:35-08:00
New Revision: f523a5522be221e4657daa111431106083e1c053

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

LOG: [Sema] Use llvm::all_of (NFC)

Added: 
    

Modified: 
    clang/lib/Sema/Sema.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 70832d1a14552d..2d4e6d1d058cd7 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -2758,7 +2758,7 @@ bool Sema::isDeclaratorFunctionLike(Declarator &D) {
     return false;
 
   LookupQualifiedName(LR, DC);
-  bool Result = std::all_of(LR.begin(), LR.end(), [](Decl *Dcl) {
+  bool Result = llvm::all_of(LR, [](Decl *Dcl) {
     if (NamedDecl *ND = dyn_cast<NamedDecl>(Dcl)) {
       ND = ND->getUnderlyingDecl();
       return isa<FunctionDecl>(ND) || isa<FunctionTemplateDecl>(ND) ||


        


More information about the cfe-commits mailing list