xref: /freebsd/contrib/libcbor/.clang-format (revision 716fd348e01c5f2ba125f878a634a753436c2994)
1---
2Language:        Cpp
3# BasedOnStyle:  Google
4AccessModifierOffset: -1
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Left
9AlignOperands:   true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: All
15AllowShortIfStatementsOnASingleLine: true
16AllowShortLoopsOnASingleLine: true
17AlwaysBreakAfterDefinitionReturnType: None
18AlwaysBreakAfterReturnType: None
19AlwaysBreakBeforeMultilineStrings: true
20AlwaysBreakTemplateDeclarations: true
21BinPackArguments: true
22BinPackParameters: true
23BraceWrapping:
24  AfterClass:      false
25  AfterControlStatement: false
26  AfterEnum:       false
27  AfterFunction:   false
28  AfterNamespace:  false
29  AfterObjCDeclaration: false
30  AfterStruct:     false
31  AfterUnion:      false
32  AfterExternBlock: false
33  BeforeCatch:     false
34  BeforeElse:      false
35  IndentBraces:    false
36  SplitEmptyFunction: true
37  SplitEmptyRecord: true
38  SplitEmptyNamespace: true
39BreakBeforeBinaryOperators: None
40BreakBeforeBraces: Attach
41BreakBeforeInheritanceComma: false
42BreakInheritanceList: BeforeColon
43BreakBeforeTernaryOperators: true
44BreakConstructorInitializersBeforeComma: false
45BreakConstructorInitializers: BeforeColon
46BreakAfterJavaFieldAnnotations: false
47BreakStringLiterals: true
48ColumnLimit:     80
49CommentPragmas:  '^ IWYU pragma:'
50CompactNamespaces: false
51ConstructorInitializerAllOnOneLineOrOnePerLine: true
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54Cpp11BracedListStyle: true
55DerivePointerAlignment: true
56DisableFormat:   false
57ExperimentalAutoDetectBinPacking: false
58FixNamespaceComments: true
59ForEachMacros:
60  - foreach
61  - Q_FOREACH
62  - BOOST_FOREACH
63IncludeBlocks:   Preserve
64IncludeCategories:
65  - Regex:           '^<ext/.*\.h>'
66    Priority:        2
67  - Regex:           '^<.*\.h>'
68    Priority:        1
69  - Regex:           '^<.*'
70    Priority:        2
71  - Regex:           '.*'
72    Priority:        3
73IncludeIsMainRegex: '([-_](test|unittest))?$'
74IndentCaseLabels: true
75IndentPPDirectives: None
76IndentWidth:     2
77IndentWrappedFunctionNames: false
78JavaScriptQuotes: Leave
79JavaScriptWrapImports: true
80KeepEmptyLinesAtTheStartOfBlocks: false
81MacroBlockBegin: ''
82MacroBlockEnd:   ''
83MaxEmptyLinesToKeep: 1
84NamespaceIndentation: None
85ObjCBinPackProtocolList: Never
86ObjCBlockIndentWidth: 2
87ObjCSpaceAfterProperty: false
88ObjCSpaceBeforeProtocolList: true
89PenaltyBreakAssignment: 2
90PenaltyBreakBeforeFirstCallParameter: 1
91PenaltyBreakComment: 300
92PenaltyBreakFirstLessLess: 120
93PenaltyBreakString: 1000
94PenaltyBreakTemplateDeclaration: 10
95PenaltyExcessCharacter: 1000000
96PenaltyReturnTypeOnItsOwnLine: 200
97PointerAlignment: Left
98RawStringFormats:
99  - Language:        Cpp
100    Delimiters:
101      - cc
102      - CC
103      - cpp
104      - Cpp
105      - CPP
106      - 'c++'
107      - 'C++'
108    CanonicalDelimiter: ''
109    BasedOnStyle:    google
110  - Language:        TextProto
111    Delimiters:
112      - pb
113      - PB
114      - proto
115      - PROTO
116    EnclosingFunctions:
117      - EqualsProto
118      - EquivToProto
119      - PARSE_PARTIAL_TEXT_PROTO
120      - PARSE_TEST_PROTO
121      - PARSE_TEXT_PROTO
122      - ParseTextOrDie
123      - ParseTextProtoOrDie
124    CanonicalDelimiter: ''
125    BasedOnStyle:    google
126ReflowComments:  true
127SortIncludes:    true
128SortUsingDeclarations: true
129SpaceAfterCStyleCast: false
130SpaceAfterTemplateKeyword: true
131SpaceBeforeAssignmentOperators: true
132SpaceBeforeCpp11BracedList: false
133SpaceBeforeCtorInitializerColon: true
134SpaceBeforeInheritanceColon: true
135SpaceBeforeParens: ControlStatements
136SpaceBeforeRangeBasedForLoopColon: true
137SpaceInEmptyParentheses: false
138SpacesBeforeTrailingComments: 2
139SpacesInAngles:  false
140SpacesInContainerLiterals: true
141SpacesInCStyleCastParentheses: false
142SpacesInParentheses: false
143SpacesInSquareBrackets: false
144Standard:        Auto
145StatementMacros:
146  - Q_UNUSED
147  - QT_REQUIRE_VERSION
148TabWidth:        8
149UseTab:          Never
150...
151
152