Skip to content

Instantly share code, notes, and snippets.

@nojima
Created November 8, 2014 06:03
Show Gist options
  • Save nojima/5c2986ac079f5d23e5dc to your computer and use it in GitHub Desktop.
Save nojima/5c2986ac079f5d23e5dc to your computer and use it in GitHub Desktop.
Index: lib/Format/ContinuationIndenter.cpp
===================================================================
--- lib/Format/ContinuationIndenter.cpp (revision 216461)
+++ lib/Format/ContinuationIndenter.cpp (working copy)
@@ -825,7 +825,7 @@
NewIndent = State.Stack.back().LastSpace;
if (Current.opensBlockTypeList(Style)) {
NewIndent += Style.IndentWidth;
- NewIndent = std::min(State.Column + 2, NewIndent);
+ NewIndent = std::min(State.Column + Style.IndentWidth, NewIndent);
++NewIndentLevel;
} else {
NewIndent += Style.ContinuationIndentWidth;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment