[clang] 73e8ada - [Sema] Use llvm::all_of (NFC) (#149256)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 07:23:03 PDT 2025
Author: Kazu Hirata
Date: 2025-07-17T07:22:59-07:00
New Revision: 73e8ada540acbd60f916ef4b0a5a2b454c8ece44
URL: https://github.com/llvm/llvm-project/commit/73e8ada540acbd60f916ef4b0a5a2b454c8ece44
DIFF: https://github.com/llvm/llvm-project/commit/73e8ada540acbd60f916ef4b0a5a2b454c8ece44.diff
LOG: [Sema] Use llvm::all_of (NFC) (#149256)
We can pass a range to llvm::all_of.
Added:
Modified:
clang/lib/Sema/AnalysisBasedWarnings.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/AnalysisBasedWarnings.cpp b/clang/lib/Sema/AnalysisBasedWarnings.cpp
index 5eba024e83634..d1400cbfc884d 100644
--- a/clang/lib/Sema/AnalysisBasedWarnings.cpp
+++ b/clang/lib/Sema/AnalysisBasedWarnings.cpp
@@ -522,8 +522,7 @@ static bool areAllValuesNoReturn(const VarDecl *VD, const CFGBlock &VarBlk,
}
// If all checked blocks satisfy the condition, the check is finished.
- if (std::all_of(BlocksToCheck.begin(), BlocksToCheck.end(),
- BlockSatisfiesCondition))
+ if (llvm::all_of(BlocksToCheck, BlockSatisfiesCondition))
return true;
// If this block does not contain the variable definition, check
More information about the cfe-commits
mailing list