xref: /freebsd/.clang-format (revision 6982f79963fcee7cb6a68799eb83f6a4a53165a2)
1---
2Language:        Cpp
3# BasedOnStyle:  LLVM
4AccessModifierOffset: 1
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveBitFields: true
8AlignConsecutiveDeclarations: false
9AlignConsecutiveMacros: false
10AlignEscapedNewlines: Left
11AlignOperands: Align
12AlignTrailingComments: true
13AllowAllArgumentsOnNextLine: false
14AllowAllConstructorInitializersOnNextLine: true
15AllowAllParametersOfDeclarationOnNextLine: false
16AllowShortBlocksOnASingleLine: Never
17AllowShortCaseLabelsOnASingleLine: false
18AllowShortEnumsOnASingleLine: false
19AllowShortFunctionsOnASingleLine: None
20AllowShortIfStatementsOnASingleLine: AllIfsAndElse
21AllowShortLambdasOnASingleLine: Empty
22AllowShortLoopsOnASingleLine: false
23AlwaysBreakAfterReturnType: All
24AlwaysBreakBeforeMultilineStrings: false
25AlwaysBreakTemplateDeclarations: true
26#AttributeMacros: []
27BinPackArguments: true
28BinPackParameters: true
29#BitFieldColonSpacing: Both
30BreakBeforeBraces: Custom
31BraceWrapping:
32  AfterCaseLabel:        true
33  AfterClass:            true
34  AfterControlStatement: true
35  AfterEnum:             true
36  AfterFunction:         true
37  AfterNamespace:        true
38  AfterObjCDeclaration:  true
39  AfterStruct:           true
40  AfterUnion:            true
41  AfterExternBlock:      true
42  BeforeCatch:           true
43  BeforeElse:            true
44  BeforeLambdaBody:      false
45  BeforeWhile:           true
46  IndentBraces:          false
47  SplitEmptyFunction:    false
48  SplitEmptyRecord:      false
49  SplitEmptyNamespace:   false
50BreakAfterJavaFieldAnnotations: true
51BreakBeforeBinaryOperators: None
52#BreakBeforeConceptDeclarations: true
53BreakBeforeInheritanceComma: false
54BreakBeforeTernaryOperators: false
55BreakConstructorInitializers: AfterColon
56BreakInheritanceList: AfterColon
57BreakStringLiterals: false
58ColumnLimit:     80
59CommentPragmas:  '^ IWYU pragma:'
60CompactNamespaces: false
61ConstructorInitializerAllOnOneLineOrOnePerLine: false
62ConstructorInitializerIndentWidth: 4
63ContinuationIndentWidth: 4
64Cpp11BracedListStyle: false
65DeriveLineEnding: false
66DerivePointerAlignment: false
67DisableFormat:   false
68ExperimentalAutoDetectBinPacking: false
69FixNamespaceComments: true
70ForEachMacros:
71  - foreach
72  - Q_FOREACH
73  - BOOST_FOREACH
74IncludeBlocks: Regroup
75IncludeCategories:
76  - Regex:           '^<(sys|arpa|net|netinet)/.*\.h>'
77    Priority:        2
78  - Regex:           '^<(args|bc|bcl|dc|file|history|lang|lex|library|num|opt|parse|program|rand|read|status|vector|version|vm)\.h>'
79    Priority:        3
80  - Regex:           '^<.*\.h>'
81    Priority:        0
82  - Regex:           '^<.*>'
83    Priority:        1
84IncludeIsMainRegex: '(Test)?$'
85IncludeIsMainSourceRegex: ''
86IndentCaseLabels: true
87IndentExternBlock: NoIndent
88IndentGotoLabels: false
89IndentPPDirectives: None
90#IndentPragmas: false
91#IndentRequires: true
92IndentWidth:     4
93IndentWrappedFunctionNames: false
94InsertTrailingCommas: None
95JavaImportGroups: []
96JavaScriptQuotes: Double
97JavaScriptWrapImports: true
98KeepEmptyLinesAtTheStartOfBlocks: false
99Language: Cpp
100MacroBlockBegin: ''
101MacroBlockEnd:   ''
102MaxEmptyLinesToKeep: 1
103NamespaceIndentation: None
104NamespaceMacros: []
105ObjCBinPackProtocolList: Always
106ObjCBlockIndentWidth: 4
107ObjCBreakBeforeNestedBlockParam: true
108ObjCSpaceAfterProperty: true
109ObjCSpaceBeforeProtocolList: true
110PenaltyBreakAssignment: 1000
111PenaltyBreakBeforeFirstCallParameter: 429496720
112PenaltyBreakComment: 300
113PenaltyBreakFirstLessLess: 42949672
114PenaltyBreakString: 10000
115PenaltyBreakTemplateDeclaration: 10
116PenaltyExcessCharacter: 42949672
117PenaltyIndentedWhitespace: 1
118PenaltyReturnTypeOnItsOwnLine: 60
119PointerAlignment: Left
120#RawStringFormats:
121# This is used to get spaces around a bitwise and operator.
122ReferenceAlignment: Middle
123ReflowComments:  true
124SortIncludes:    false
125SortUsingDeclarations: true
126SpaceAfterCStyleCast: true
127SpaceAfterLogicalNot: false
128SpaceAfterTemplateKeyword: true
129#SpaceAroundPointerQualifiers: Default
130SpaceBeforeAssignmentOperators: true
131SpaceBeforeCpp11BracedList: true
132SpaceBeforeCtorInitializerColon: true
133SpaceBeforeInheritanceColon: true
134SpaceBeforeParens: ControlStatements
135SpaceBeforeRangeBasedForLoopColon: true
136SpaceBeforeSquareBrackets: false
137SpaceInEmptyBlock: false
138SpaceInEmptyParentheses: false
139SpacesBeforeTrailingComments: 1
140SpacesInAngles:  false
141SpacesInContainerLiterals: true
142SpacesInCStyleCastParentheses: false
143SpacesInConditionalStatement: false
144SpacesInParentheses: false
145SpacesInSquareBrackets: false
146Standard:       Latest
147TabWidth:       4
148TypenameMacros: []
149UseCRLF:        false
150UseTab:         ForIndentation
151WhitespaceSensitiveMacros: []
152...
153