aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 51db69c5ae..ebb49498da 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -57,6 +57,7 @@ FormatStyle getLLVMStyle() {
LLVMStyle.PointerAndReferenceBindToType = false;
LLVMStyle.AccessModifierOffset = -2;
LLVMStyle.SplitTemplateClosingGreater = true;
+ LLVMStyle.IndentCaseLabels = false;
return LLVMStyle;
}
@@ -67,6 +68,7 @@ FormatStyle getGoogleStyle() {
GoogleStyle.PointerAndReferenceBindToType = true;
GoogleStyle.AccessModifierOffset = -1;
GoogleStyle.SplitTemplateClosingGreater = false;
+ GoogleStyle.IndentCaseLabels = true;
return GoogleStyle;
}
@@ -760,7 +762,7 @@ public:
}
tooling::Replacements format() {
- UnwrappedLineParser Parser(Lex, SourceMgr, *this);
+ UnwrappedLineParser Parser(Style, Lex, SourceMgr, *this);
StructuralError = Parser.parse();
for (std::vector<UnwrappedLine>::iterator I = UnwrappedLines.begin(),
E = UnwrappedLines.end();