feat: spec-compliant AHCI HBA initialization
[lunaix-os.git] / lunaix-os / .clang-format
1 ---
2 Language:        Cpp
3 # BasedOnStyle:  Mozilla
4 AccessModifierOffset: -2
5 AlignAfterOpenBracket: Align
6 AlignConsecutiveMacros: false
7 AlignConsecutiveAssignments: false
8 AlignConsecutiveDeclarations: false
9 AlignEscapedNewlines: Right
10 AlignOperands:   true
11 AlignTrailingComments: true
12 AllowAllArgumentsOnNextLine: true
13 AllowAllConstructorInitializersOnNextLine: true
14 AllowAllParametersOfDeclarationOnNextLine: false
15 AllowShortBlocksOnASingleLine: Never
16 AllowShortCaseLabelsOnASingleLine: false
17 AllowShortFunctionsOnASingleLine: Inline
18 AllowShortLambdasOnASingleLine: All
19 AllowShortIfStatementsOnASingleLine: Never
20 AllowShortLoopsOnASingleLine: false
21 AlwaysBreakAfterDefinitionReturnType: TopLevel
22 AlwaysBreakAfterReturnType: TopLevel
23 AlwaysBreakBeforeMultilineStrings: false
24 AlwaysBreakTemplateDeclarations: Yes
25 BinPackArguments: false
26 BinPackParameters: false
27 BraceWrapping:
28   AfterCaseLabel:  false
29   AfterClass:      true
30   AfterControlStatement: false
31   AfterEnum:       true
32   AfterFunction:   true
33   AfterNamespace:  false
34   AfterObjCDeclaration: false
35   AfterStruct:     true
36   AfterUnion:      true
37   AfterExternBlock: true
38   BeforeCatch:     false
39   BeforeElse:      false
40   IndentBraces:    false
41   SplitEmptyFunction: true
42   SplitEmptyRecord: false
43   SplitEmptyNamespace: true
44 BreakBeforeBinaryOperators: None
45 BreakBeforeBraces: Mozilla
46 BreakBeforeInheritanceComma: false
47 BreakInheritanceList: BeforeComma
48 BreakBeforeTernaryOperators: true
49 BreakConstructorInitializersBeforeComma: false
50 BreakConstructorInitializers: BeforeComma
51 BreakAfterJavaFieldAnnotations: false
52 BreakStringLiterals: true
53 ColumnLimit:     80
54 CommentPragmas:  '^ IWYU pragma:'
55 CompactNamespaces: false
56 ConstructorInitializerAllOnOneLineOrOnePerLine: false
57 ConstructorInitializerIndentWidth: 2
58 ContinuationIndentWidth: 2
59 Cpp11BracedListStyle: false
60 DeriveLineEnding: true
61 DerivePointerAlignment: false
62 DisableFormat:   false
63 ExperimentalAutoDetectBinPacking: false
64 FixNamespaceComments: false
65 ForEachMacros:
66   - foreach
67   - Q_FOREACH
68   - BOOST_FOREACH
69 IncludeBlocks:   Preserve
70 IncludeCategories:
71   - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
72     Priority:        2
73     SortPriority:    0
74   - Regex:           '^(<|"(gtest|gmock|isl|json)/)'
75     Priority:        3
76     SortPriority:    0
77   - Regex:           '.*'
78     Priority:        1
79     SortPriority:    0
80 IncludeIsMainRegex: '(Test)?$'
81 IncludeIsMainSourceRegex: ''
82 IndentCaseLabels: true
83 IndentGotoLabels: true
84 IndentPPDirectives: None
85 IndentWidth:     4
86 IndentWrappedFunctionNames: false
87 JavaScriptQuotes: Leave
88 JavaScriptWrapImports: true
89 KeepEmptyLinesAtTheStartOfBlocks: true
90 MacroBlockBegin: ''
91 MacroBlockEnd:   ''
92 MaxEmptyLinesToKeep: 1
93 NamespaceIndentation: None
94 ObjCBinPackProtocolList: Auto
95 ObjCBlockIndentWidth: 2
96 ObjCSpaceAfterProperty: true
97 ObjCSpaceBeforeProtocolList: false
98 PenaltyBreakAssignment: 2
99 PenaltyBreakBeforeFirstCallParameter: 19
100 PenaltyBreakComment: 300
101 PenaltyBreakFirstLessLess: 120
102 PenaltyBreakString: 1000
103 PenaltyBreakTemplateDeclaration: 10
104 PenaltyExcessCharacter: 1000000
105 PenaltyReturnTypeOnItsOwnLine: 200
106 PointerAlignment: Left
107 ReflowComments:  true
108 SortIncludes:    true
109 SortUsingDeclarations: true
110 SpaceAfterCStyleCast: false
111 SpaceAfterLogicalNot: false
112 SpaceAfterTemplateKeyword: false
113 SpaceBeforeAssignmentOperators: true
114 SpaceBeforeCpp11BracedList: false
115 SpaceBeforeCtorInitializerColon: true
116 SpaceBeforeInheritanceColon: true
117 SpaceBeforeParens: ControlStatements
118 SpaceBeforeRangeBasedForLoopColon: true
119 SpaceInEmptyBlock: false
120 SpaceInEmptyParentheses: false
121 SpacesBeforeTrailingComments: 1
122 SpacesInAngles:  false
123 SpacesInConditionalStatement: false
124 SpacesInContainerLiterals: true
125 SpacesInCStyleCastParentheses: false
126 SpacesInParentheses: false
127 SpacesInSquareBrackets: false
128 SpaceBeforeSquareBrackets: false
129 Standard:        Latest
130 StatementMacros:
131   - Q_UNUSED
132   - QT_REQUIRE_VERSION
133 TabWidth:        8
134 UseCRLF:         false
135 UseTab:          Never
136 ...
137