[PATCH] D136154: [clang-format] Fix the continuation indenter
Henrik Lafrenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 19 00:02:57 PDT 2022
hel-ableton updated this revision to Diff 468793.
hel-ableton added a comment.
Sorry about the plus sign! I'm fairly unfamiliar with your process, so something between making a diff and making a patch must have gone wrong. About the brackets, I was wondering why there weren't any, but didn't see the need to add them given the change. In any case, now there are brackets.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136154/new/
https://reviews.llvm.org/D136154
Files:
clang/lib/Format/ContinuationIndenter.cpp
Index: clang/lib/Format/ContinuationIndenter.cpp
===================================================================
--- clang/lib/Format/ContinuationIndenter.cpp
+++ clang/lib/Format/ContinuationIndenter.cpp
@@ -810,8 +810,9 @@
// assignment without binary expression on the RHS. Also indent relative to
// unary operators and the colons of constructor initializers.
if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None ||
-+ Style.BreakBeforeBinaryOperators == FormatStyle::BOS_NonAssignment)
+ Style.BreakBeforeBinaryOperators == FormatStyle::BOS_NonAssignment) {
CurrentState.LastSpace = State.Column;
+ }
} else if (Previous.is(TT_InheritanceColon)) {
CurrentState.Indent = State.Column;
CurrentState.LastSpace = State.Column;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136154.468793.patch
Type: text/x-patch
Size: 792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221019/71d35732/attachment-0001.bin>
More information about the cfe-commits
mailing list