A bit of AST matcher cleanup, NFC.
Removed the uses of the allOf() matcher inside node matchers that are implicit
allOf(). Replaced uses of allOf() with the explicit node matcher where it makes
matchers more readable. Replace anyOf(hasName(), hasName(), ...) with the more
efficient and readable hasAnyName().
llvm-svn: 347520
diff --git a/clang-tools-extra/clang-tidy/readability/IsolateDeclarationCheck.cpp b/clang-tools-extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
index 3155be3..e9ccb17 100644
--- a/clang-tools-extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
@@ -26,11 +26,10 @@
} // namespace
void IsolateDeclarationCheck::registerMatchers(MatchFinder *Finder) {
- Finder->addMatcher(
- declStmt(allOf(onlyDeclaresVariables(), unless(isSingleDecl()),
- hasParent(compoundStmt())))
- .bind("decl_stmt"),
- this);
+ Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()),
+ hasParent(compoundStmt()))
+ .bind("decl_stmt"),
+ this);
}
static SourceLocation findStartOfIndirection(SourceLocation Start,