diff options
author | Owen Pan <owenpiano@gmail.com> | 2023-11-17 18:12:44 -0800 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2023-11-17 18:18:49 -0800 |
commit | f6033699646b7650123a273c043a93e5eeaac6d8 (patch) | |
tree | 09269bcedb2ef5d6ca894e4aa71b3fe05788f18f | |
parent | e2210cefb18171496573957945f9bd48eb631170 (diff) |
[clang-format][NFC] Remove a redundant isLiteral() call
-rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 1d376cd8b579..a6cd3c68e30b 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -3407,10 +3407,8 @@ static bool isFunctionDeclarationName(bool IsCpp, const FormatToken &Current, Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) { return true; } - if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) || - Tok->Tok.isLiteral()) { + if (Tok->isOneOf(tok::l_brace, TT_ObjCMethodExpr) || Tok->Tok.isLiteral()) return false; - } } return false; } |