[clang] f603369 - [clang-format][NFC] Remove a redundant isLiteral() call
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 17 18:19:01 PST 2023
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;
}
More information about the cfe-commits
mailing list