[PATCH] D138354: [clang-format][NFC] Remove unneeded braces
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 21 04:24:48 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaff838fb8f1d: [clang-format][NFC] Remove unneeded braces (authored by HazardyKnusperkeks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138354/new/
https://reviews.llvm.org/D138354
Files:
clang/lib/Format/TokenAnnotator.cpp
Index: clang/lib/Format/TokenAnnotator.cpp
===================================================================
--- clang/lib/Format/TokenAnnotator.cpp
+++ clang/lib/Format/TokenAnnotator.cpp
@@ -1352,9 +1352,8 @@
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();
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138354.476856.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221121/ca229552/attachment-0001.bin>
More information about the cfe-commits
mailing list