Skip to content

Commit a699ab5

Browse files
committed
[clang-format][NFC] Remove redundant Block/Line Comment in is()
1 parent a207e63 commit a699ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/ContinuationIndenter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,8 +1428,8 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) {
14281428
return CurrentState.Indent - Current.Tok.getLength() -
14291429
Current.SpacesRequiredBefore;
14301430
}
1431-
if (Current.isOneOf(tok::comment, TT_BlockComment, TT_LineComment) &&
1432-
NextNonComment->isBinaryOperator() && CurrentState.UnindentOperator) {
1431+
if (Current.is(tok::comment) && NextNonComment->isBinaryOperator() &&
1432+
CurrentState.UnindentOperator) {
14331433
return CurrentState.Indent - NextNonComment->Tok.getLength() -
14341434
NextNonComment->SpacesRequiredBefore;
14351435
}

0 commit comments

Comments
 (0)