clang-format: Fix incorrect enum parsing / layouting.
Before:
enum {
Bar = Foo < int,
int > ::value
};
After:
enum {
Bar = Foo<int, int>::value
};
llvm-svn: 190674
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 52f8b07..034f6e6 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -529,7 +529,7 @@
E = LBrace.Children.end();
I != E; ++I) {
unsigned Indent =
- ParentIndent + ((*I)->Level - Line.Level) * Style.IndentWidth;
+ ParentIndent + ((*I)->Level - Line.Level - 1) * Style.IndentWidth;
if (!DryRun) {
unsigned Newlines = std::min((*I)->First->NewlinesBefore,
Style.MaxEmptyLinesToKeep + 1);