Author: Owen Pan Date: 2023-11-17T18:18:49-08:00 New Revision: f6033699646b7650123a273c043a93e5eeaac6d8
URL: https://github.com/llvm/llvm-project/commit/f6033699646b7650123a273c043a93e5eeaac6d8 DIFF: https://github.com/llvm/llvm-project/commit/f6033699646b7650123a273c043a93e5eeaac6d8.diff LOG: [clang-format][NFC] Remove a redundant isLiteral() call Added: Modified: clang/lib/Format/TokenAnnotator.cpp Removed: ################################################################################ diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 1d376cd8b5794dd..a6cd3c68e30bcaf 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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits