[clang-tools-extra] [clang-tidy][NFC] Enable readability-any-all-of check (PR #167134)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 04:33:05 PST 2025
================
@@ -25,11 +25,9 @@ AST_MATCHER_P(ObjCImplementationDecl, hasInterface,
AST_MATCHER_P(ObjCContainerDecl, hasInstanceMethod,
ast_matchers::internal::Matcher<ObjCMethodDecl>, Base) {
// Check each instance method against the provided matcher.
- for (const auto *I : Node.instance_methods()) {
- if (Base.matches(*I, Finder, Builder))
- return true;
- }
- return false;
+ return llvm::any_of(Node.instance_methods(), [&](const auto *I) {
----------------
vbvictor wrote:
Real type?
https://github.com/llvm/llvm-project/pull/167134
More information about the cfe-commits
mailing list