[clang] aff838f - [clang-format][NFC] Remove unneeded braces
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 21 04:24:37 PST 2022
Author: Björn Schäpers
Date: 2022-11-21T13:24:17+01:00
New Revision: aff838fb8f1d398e8d9fc6ec15b5a10db3e1c057
URL: https://github.com/llvm/llvm-project/commit/aff838fb8f1d398e8d9fc6ec15b5a10db3e1c057
DIFF: https://github.com/llvm/llvm-project/commit/aff838fb8f1d398e8d9fc6ec15b5a10db3e1c057.diff
LOG: [clang-format][NFC] Remove unneeded braces
Done by clang-format itself.
Differential Revision: https://reviews.llvm.org/D138354
Added:
Modified:
clang/lib/Format/TokenAnnotator.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index e7280df4c78e4..87e70c367fde0 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -1352,9 +1352,8 @@ class AnnotatingParser {
next();
next(); // Consume first token (so we fix leading whitespace).
while (CurrentToken) {
- if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) {
+ if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator))
CurrentToken->setType(TT_ImplicitStringLiteral);
- }
next();
}
}
More information about the cfe-commits
mailing list