Skip to content

Commit f603369

Browse files
committed
[clang-format][NFC] Remove a redundant isLiteral() call
1 parent e2210ce commit f603369

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,10 +3407,8 @@ static bool isFunctionDeclarationName(bool IsCpp, const FormatToken &Current,
34073407
Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) {
34083408
return true;
34093409
}
3410-
if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) ||
3411-
Tok->Tok.isLiteral()) {
3410+
if (Tok->isOneOf(tok::l_brace, TT_ObjCMethodExpr) || Tok->Tok.isLiteral())
34123411
return false;
3413-
}
34143412
}
34153413
return false;
34163414
}

0 commit comments

Comments
 (0)