From aae6b8874892cf89f4da7156faec2359d2f303b5 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 31 Jul 2018 07:48:18 -0700 Subject: clang-format: change it to better match our style These additions make a better fit to our style, they are adapted from those done for Linux. Change-Id: I664c9d1503e3bb7bedcd617e15d2d2c57e19bdff Signed-off-by: Ronald G. Minnich Reviewed-on: https://review.coreboot.org/27752 Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel Reviewed-by: Philipp Deppenwiese Tested-by: build bot (Jenkins) --- .clang-format | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 16d606b384..d853f50480 100644 --- a/.clang-format +++ b/.clang-format @@ -1,10 +1,21 @@ -BasedOnStyle: LLVM -Language: Cpp -IndentWidth: 8 -UseTab: Always -BreakBeforeBraces: Linux -AllowShortIfStatementsOnASingleLine: false -IndentCaseLabels: false -SortIncludes: false -ContinuationIndentWidth: 8 -ColumnLimit: 80 +BasedOnStyle: LLVM +Language: Cpp +IndentWidth: 8 +UseTab: Always +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false +SortIncludes: false +ContinuationIndentWidth: 8 +ColumnLimit: 0 +AlwaysBreakBeforeMultilineStrings: true +AllowShortLoopsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AlignEscapedNewlinesLeft: false +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: false +AlignAfterOpenBracket: true +SpaceAfterCStyleCast: false +MaxEmptyLinesToKeep: 2 +BreakBeforeBinaryOperators: NonAssignment +BreakStringLiterals: false -- cgit v1.2.3