From: Ondřej Surý Date: Wed, 18 Apr 2018 18:14:57 +0000 (-0700) Subject: Add more tweaks to .clang-format style for experimenting X-Git-Tag: v9.13.0~52^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52283111d338473dd86dfb3102d35564e143a14;p=thirdparty%2Fbind9.git Add more tweaks to .clang-format style for experimenting --- diff --git a/.clang-format b/.clang-format index 8f213fec235..3005bd4a91c 100644 --- a/.clang-format +++ b/.clang-format @@ -2,18 +2,36 @@ BasedOnStyle: LLVM BreakBeforeBraces: Linux IndentWidth: 8 +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^"' + Priority: 5 + - Regex: '^<(dns|ns|irs|isccc|iscfg)/' + Priority: 4 + - Regex: '^' + Priority: 1 +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +PenaltyBreakBeforeFirstCallParameter: 100 ContinuationIndentWidth: 8 +AlwaysBreakAfterReturnType: TopLevel Standard: Cpp11 TabWidth: 8 -UseTab: ForIndentation +UseTab: ForContinuationAndIndentation ColumnLimit: 80 IndentCaseLabels: false -AllowShortCaseLabelsOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: false AlignTrailingComments: true AlignOperands: true AlignConsecutiveAssignments: true AlignConsecutiveDeclarations: true AllowAllParametersOfDeclarationOnNextLine: false AlwaysBreakAfterDefinitionReturnType: TopLevel +AlignAfterOpenBracket: Align CommentPragmas: 'Copyright' +BreakBeforeTernaryOperators: false ...