owenpan updated this revision to Diff 160561.
owenpan added a comment.
Updated patch created by "svn diff --diff-cmd=diff -x -U999999"
Repository:
rC Clang
https://reviews.llvm.org/D50699
Files:
ContinuationIndenter.cpp
Index: ContinuationIndenter.cpp
===================================================================
--- ContinuationIndenter.cpp
+++ ContinuationIndenter.cpp
@@ -700,7 +700,8 @@
// Indent relative to the RHS of the expression unless this is a simple
// assignment without binary expression on the RHS. Also indent relative to
// unary operators and the colons of constructor initializers.
- State.Stack.back().LastSpace = State.Column;
+ if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None)
+ State.Stack.back().LastSpace = State.Column;
} else if (Previous.is(TT_InheritanceColon)) {
State.Stack.back().Indent = State.Column;
State.Stack.back().LastSpace = State.Column;
Index: ContinuationIndenter.cpp
===================================================================
--- ContinuationIndenter.cpp
+++ ContinuationIndenter.cpp
@@ -700,7 +700,8 @@
// Indent relative to the RHS of the expression unless this is a simple
// assignment without binary expression on the RHS. Also indent relative to
// unary operators and the colons of constructor initializers.
- State.Stack.back().LastSpace = State.Column;
+ if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None)
+ State.Stack.back().LastSpace = State.Column;
} else if (Previous.is(TT_InheritanceColon)) {
State.Stack.back().Indent = State.Column;
State.Stack.back().LastSpace = State.Column;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits