Skip to content

Commit 4a6aaf6

Browse files
committed
remove braces in single-line conditions
1 parent 09f6a7b commit 4a6aaf6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ AST_MATCHER_P(DeclRefExpr, doesNotMutateObject, int, Indirections) {
9090
assert(Ty->isPointerType());
9191
Ty = Ty->getPointeeType().getCanonicalType();
9292
}
93-
if (Ty.isConstQualified()) {
93+
if (Ty.isConstQualified())
9494
continue;
95-
}
9695

9796
// Otherwise we have to look at the parents to see how the expression is
9897
// used.
@@ -143,9 +142,8 @@ AST_MATCHER_P(DeclRefExpr, doesNotMutateObject, int, Indirections) {
143142
continue;
144143
case CK_LValueToRValue: {
145144
// An rvalue is immutable.
146-
if (Entry.Indirections == 0) {
145+
if (Entry.Indirections == 0)
147146
continue;
148-
}
149147
Stack.emplace_back(Cast, Entry.Indirections);
150148
continue;
151149
}

0 commit comments

Comments
 (0)