11# SPDX-License-Identifier: GPL-2.0
22#
3- # clang-format configuration file. Intended for clang-format >= 4 .
3+ # clang-format configuration file. Intended for clang-format >= 6 .
44#
55# For more information, see:
66#
@@ -13,7 +13,7 @@ AccessModifierOffset: -4
1313AlignAfterOpenBracket : Align
1414AlignConsecutiveAssignments : false
1515AlignConsecutiveDeclarations : false
16- # AlignEscapedNewlines: Left # Unknown to clang-format-4.0
16+ AlignEscapedNewlines : Left
1717AlignOperands : true
1818AlignTrailingComments : false
1919AllowAllParametersOfDeclarationOnNextLine : false
@@ -37,32 +37,32 @@ BraceWrapping:
3737 AfterObjCDeclaration : false
3838 AfterStruct : false
3939 AfterUnion : false
40- # AfterExternBlock: false # Unknown to clang-format-5.0
40+ AfterExternBlock : false
4141 BeforeCatch : false
4242 BeforeElse : false
4343 IndentBraces : false
44- # SplitEmptyFunction: true # Unknown to clang-format-4.0
45- # SplitEmptyRecord: true # Unknown to clang-format-4.0
46- # SplitEmptyNamespace: true # Unknown to clang-format-4.0
44+ SplitEmptyFunction : true
45+ SplitEmptyRecord : true
46+ SplitEmptyNamespace : true
4747BreakBeforeBinaryOperators : None
4848BreakBeforeBraces : Custom
49- # BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
49+ BreakBeforeInheritanceComma : false
5050BreakBeforeTernaryOperators : false
5151BreakConstructorInitializersBeforeComma : false
52- # BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
52+ BreakConstructorInitializers : BeforeComma
5353BreakAfterJavaFieldAnnotations : false
5454BreakStringLiterals : false
5555ColumnLimit : 80
5656CommentPragmas : ' ^ IWYU pragma:'
57- # CompactNamespaces: false # Unknown to clang-format-4.0
57+ CompactNamespaces : false
5858ConstructorInitializerAllOnOneLineOrOnePerLine : false
5959ConstructorInitializerIndentWidth : 8
6060ContinuationIndentWidth : 8
6161Cpp11BracedListStyle : false
6262DerivePointerAlignment : false
6363DisableFormat : false
6464ExperimentalAutoDetectBinPacking : false
65- # FixNamespaceComments: false # Unknown to clang-format-4.0
65+ FixNamespaceComments : false
6666
6767# Taken from:
6868# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ tools/ \
@@ -627,13 +627,13 @@ ForEachMacros:
627627 - ' xbc_node_for_each_subkey'
628628 - ' zorro_for_each_dev'
629629
630- # IncludeBlocks: Preserve # Unknown to clang-format-5.0
630+ IncludeBlocks : Preserve
631631IncludeCategories :
632632 - Regex : ' .*'
633633 Priority : 1
634634IncludeIsMainRegex : ' (Test)?$'
635635IndentCaseLabels : false
636- # IndentPPDirectives: None # Unknown to clang-format-5.0
636+ IndentPPDirectives : None
637637IndentWidth : 8
638638IndentWrappedFunctionNames : false
639639JavaScriptQuotes : Leave
@@ -643,13 +643,13 @@ MacroBlockBegin: ''
643643MacroBlockEnd : ' '
644644MaxEmptyLinesToKeep : 1
645645NamespaceIndentation : None
646- # ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
646+ ObjCBinPackProtocolList : Auto
647647ObjCBlockIndentWidth : 8
648648ObjCSpaceAfterProperty : true
649649ObjCSpaceBeforeProtocolList : true
650650
651651# Taken from git's rules
652- # PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
652+ PenaltyBreakAssignment : 10
653653PenaltyBreakBeforeFirstCallParameter : 30
654654PenaltyBreakComment : 10
655655PenaltyBreakFirstLessLess : 0
@@ -660,14 +660,14 @@ PenaltyReturnTypeOnItsOwnLine: 60
660660PointerAlignment : Right
661661ReflowComments : false
662662SortIncludes : false
663- # SortUsingDeclarations: false # Unknown to clang-format-4.0
663+ SortUsingDeclarations : false
664664SpaceAfterCStyleCast : false
665665SpaceAfterTemplateKeyword : true
666666SpaceBeforeAssignmentOperators : true
667- # SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
668- # SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
667+ SpaceBeforeCtorInitializerColon : true
668+ SpaceBeforeInheritanceColon : true
669669SpaceBeforeParens : ControlStatements
670- # SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
670+ SpaceBeforeRangeBasedForLoopColon : true
671671SpaceInEmptyParentheses : false
672672SpacesBeforeTrailingComments : 1
673673SpacesInAngles : false
0 commit comments