From 52fb5a301ff94c54f44e1f6353d2a7657fa05ab3 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Tue, 10 Dec 2013 15:46:42 +0000 Subject: [PATCH] Remove IndentBlocks, which sneaked winto the previous commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196929 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Format/Format.h | 5 ----- lib/Format/Format.cpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 49e6909f7e..7af5a09451 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -94,10 +94,6 @@ struct FormatStyle { /// A > instead of \c A> for LS_Cpp03. LanguageStandard Standard; - /// \brief When \c true, blocks (including braces) get an additional level of - /// indentation. - bool IndentBlocks; - /// \brief Indent case labels one level from the switch statement. /// /// When \c false, use the same indentation level as for the switch statement. @@ -312,7 +308,6 @@ struct FormatStyle { DerivePointerBinding == R.DerivePointerBinding && ExperimentalAutoDetectBinPacking == R.ExperimentalAutoDetectBinPacking && - IndentBlocks == R.IndentBlocks && IndentCaseLabels == R.IndentCaseLabels && IndentFunctionDeclarationAfterType == R.IndentFunctionDeclarationAfterType && diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 4225178405..808e64db91 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -256,7 +256,6 @@ FormatStyle getLLVMStyle() { LLVMStyle.Cpp11BracedListStyle = false; LLVMStyle.DerivePointerBinding = false; LLVMStyle.ExperimentalAutoDetectBinPacking = false; - LLVMStyle.IndentBlocks = false; LLVMStyle.IndentCaseLabels = false; LLVMStyle.IndentFunctionDeclarationAfterType = false; LLVMStyle.IndentWidth = 2; @@ -363,7 +362,6 @@ FormatStyle getGNUStyle() { Style.BreakBeforeBraces = FormatStyle::BS_Allman; Style.BreakBeforeTernaryOperators = true; Style.ColumnLimit = 79; - Style.IndentBlocks = true; Style.SpaceBeforeParens = FormatStyle::SBPO_Always; return Style; } -- 2.40.0