[PATCH] D138354: [clang-format][NFC] Remove unneeded braces
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 19 08:47:20 PST 2022
HazardyKnusperkeks created this revision.
HazardyKnusperkeks added reviewers: owenpan, rymiel, MyDeveloperDay.
HazardyKnusperkeks added a project: clang-format.
Herald added a project: All.
HazardyKnusperkeks requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Done by clang-format itself.
Repository:
rG LLVM Github Monorepo
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.476683.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221119/9f6111fa/attachment.bin>
More information about the cfe-commits
mailing list