X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=.clang-format;h=1d38b796e8b0d90a7cfaad482981f26f56a51bea;hb=20364ea36aa275e8b3f6dc9931e1be31f1c605af;hp=66b5ef4088dc7e9088f12c8ff4c7f4c298e6558b;hpb=d17cc1f33c8bc03b375e5d6f602646fd87fba5ad;p=lttng-tools.git diff --git a/.clang-format b/.clang-format index 66b5ef408..1d38b796e 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,8 @@ AccessModifierOffset: -8 -AlignAfterOpenBracket: DontAlign +AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false +AlignConsecutiveMacros: Consecutive AlignEscapedNewlines: Left AlignOperands: false AlignTrailingComments: false @@ -14,7 +15,7 @@ AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: Yes -BinPackArguments: true +BinPackArguments: false BinPackParameters: false BreakBeforeBraces: Custom BreakConstructorInitializers: AfterColon @@ -38,10 +39,12 @@ BreakStringLiterals: false ColumnLimit: 100 ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 8 -ContinuationIndentWidth: 16 +ContinuationIndentWidth: 8 +Cpp11BracedListStyle: false DerivePointerAlignment: false DisableFormat: false EmptyLineBeforeAccessModifier: LogicalBlock +FixNamespaceComments: true ForEachMacros: - 'cds_lfht_for_each_entry' - 'cds_lfht_for_each_entry_safe' @@ -49,10 +52,19 @@ ForEachMacros: - 'cds_list_for_each_entry' - 'cds_list_for_each_entry_safe' -IncludeBlocks: Preserve +IncludeBlocks: Regroup IncludeCategories: - - Regex: '.*' + - Regex: '".*"' + Priority: 0 + - Regex: '' Priority: 1 + - Regex: '' + Priority: 2 + - Regex: '' + Priority: 3 + - Regex: '<.*>' + Priority: 9 + IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: false IndentPPDirectives: None