Skip to content

Commit 19ec341

Browse files
committed
Restore the style of !Ptr || !Ptr->
1 parent e959ae8 commit 19ec341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Format/ContinuationIndenter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
725725
return false;
726726

727727
const auto *Prev = Current.getPreviousNonComment();
728-
if (!(Prev && Prev->is(tok::l_paren)))
728+
if (!Prev || Prev->isNot(tok::l_paren))
729729
return false;
730730

731731
if (Prev->BlockParameterCount == 0)

0 commit comments

Comments
 (0)