aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/readability/RedundantControlFlowCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/readability/RedundantControlFlowCheck.cpp')
-rw-r--r--clang-tidy/readability/RedundantControlFlowCheck.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang-tidy/readability/RedundantControlFlowCheck.cpp b/clang-tidy/readability/RedundantControlFlowCheck.cpp
index 4f8f8d17..0788c42e 100644
--- a/clang-tidy/readability/RedundantControlFlowCheck.cpp
+++ b/clang-tidy/readability/RedundantControlFlowCheck.cpp
@@ -33,9 +33,10 @@ bool isLocationInMacroExpansion(const SourceManager &SM, SourceLocation Loc) {
void RedundantControlFlowCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
- functionDecl(isDefinition(), returns(voidType()),
- has(compoundStmt(hasAnySubstatement(returnStmt(
- unless(has(expr()))))).bind("return"))),
+ functionDecl(
+ isDefinition(), returns(voidType()),
+ has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr())))))
+ .bind("return"))),
this);
auto CompoundContinue =
has(compoundStmt(hasAnySubstatement(continueStmt())).bind("continue"));