Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / ot-br-posix / repo / .clang-format
1 ---
2 Language:        Cpp
3 # BasedOnStyle:  LLVM
4 AccessModifierOffset: -4
5 AlignAfterOpenBracket: Align
6 AlignConsecutiveAssignments: true
7 AlignConsecutiveDeclarations: true
8 AlignEscapedNewlines: Left
9 AlignOperands:   true
10 AlignTrailingComments: true
11 AllowAllParametersOfDeclarationOnNextLine: false
12 AllowShortBlocksOnASingleLine: false
13 AllowShortCaseLabelsOnASingleLine: false
14 AllowShortFunctionsOnASingleLine: InlineOnly
15 AllowShortIfStatementsOnASingleLine: false
16 AllowShortLoopsOnASingleLine: true
17 AlwaysBreakAfterDefinitionReturnType: None
18 AlwaysBreakAfterReturnType: None
19 AlwaysBreakBeforeMultilineStrings: false
20 AlwaysBreakTemplateDeclarations: false
21 BinPackArguments: true
22 BinPackParameters: false
23 BraceWrapping:
24   AfterCaseLabel:  true
25   AfterClass:      true
26   AfterControlStatement: true
27   AfterEnum:       true
28   AfterFunction:   true
29   AfterNamespace:  false
30   AfterObjCDeclaration: false
31   AfterStruct:     true
32   AfterUnion:      true
33   BeforeCatch:     false
34   BeforeElse:      true
35   IndentBraces:    false
36   SplitEmptyFunction: true
37   SplitEmptyRecord: true
38   SplitEmptyNamespace: true
39 BreakBeforeBinaryOperators: None
40 BreakBeforeBraces: Custom
41 BreakBeforeInheritanceComma: false
42 BreakBeforeTernaryOperators: true
43 BreakConstructorInitializersBeforeComma: false
44 BreakConstructorInitializers: BeforeComma
45 BreakAfterJavaFieldAnnotations: false
46 BreakStringLiterals: true
47 ColumnLimit:     120
48 CommentPragmas:  '^ IWYU pragma:'
49 CompactNamespaces: false
50 ConstructorInitializerAllOnOneLineOrOnePerLine: false
51 ConstructorInitializerIndentWidth: 4
52 ContinuationIndentWidth: 4
53 Cpp11BracedListStyle: true
54 DerivePointerAlignment: false
55 DisableFormat:   false
56 ExperimentalAutoDetectBinPacking: false
57 FixNamespaceComments: true
58 ForEachMacros:   
59   - foreach
60   - Q_FOREACH
61   - BOOST_FOREACH
62 IncludeCategories: 
63   - Regex:           '^<openthread/.*/'
64     Priority:        4
65   - Regex:           '^<openthread/'
66     Priority:        3
67   - Regex:           '^<'
68     Priority:        2
69   - Regex:           '^".*/'
70     Priority:        5
71   - Regex:           '^"'
72     Priority:        1
73 IncludeIsMainRegex: '(Test)?$'
74 IndentCaseLabels: false
75 IndentWidth:     4
76 IndentWrappedFunctionNames: false
77 JavaScriptQuotes: Leave
78 JavaScriptWrapImports: true
79 KeepEmptyLinesAtTheStartOfBlocks: false
80 MacroBlockBegin: ''
81 MacroBlockEnd:   ''
82 MaxEmptyLinesToKeep: 1
83 NamespaceIndentation: None
84 ObjCBlockIndentWidth: 2
85 ObjCSpaceAfterProperty: false
86 ObjCSpaceBeforeProtocolList: true
87 PenaltyBreakAssignment: 2
88 PenaltyBreakBeforeFirstCallParameter: 19
89 PenaltyBreakComment: 300
90 PenaltyBreakFirstLessLess: 120
91 PenaltyBreakString: 1000
92 PenaltyExcessCharacter: 1000000
93 PenaltyReturnTypeOnItsOwnLine: 1000
94 PointerAlignment: Right
95 ReflowComments:  true
96 SortIncludes:    true
97 SortUsingDeclarations: true
98 SpaceAfterCStyleCast: false
99 SpaceAfterTemplateKeyword: true
100 SpaceBeforeAssignmentOperators: true
101 SpaceBeforeParens: ControlStatements
102 SpaceInEmptyParentheses: false
103 SpacesBeforeTrailingComments: 1
104 SpacesInAngles:  false
105 SpacesInContainerLiterals: true
106 SpacesInCStyleCastParentheses: false
107 SpacesInParentheses: false
108 SpacesInSquareBrackets: false
109 Standard:        Cpp11
110 TabWidth:        4
111 UseTab:          Never
112 ...
113