Debian Codegraph @

.clang-format

raw
1 # Copyright (c) 2020-2023 by the Zeek Project. See LICENSE for details.
2
3 ---
4 Language: Cpp
5 AccessModifierOffset: -4
6 AlignAfterOpenBracket: Align
7 AlignConsecutiveAssignments: false
8 AlignConsecutiveDeclarations: false
9 AlignEscapedNewlines: Right
10 AlignOperands: true
11 AlignTrailingComments: true
12 AllowAllParametersOfDeclarationOnNextLine: false
13 AllowShortBlocksOnASingleLine: false
14 AllowShortCaseLabelsOnASingleLine: true
15 AllowShortFunctionsOnASingleLine: true
16 AllowShortIfStatementsOnASingleLine: false
17 AllowShortLoopsOnASingleLine: false
18 AlwaysBreakAfterDefinitionReturnType: None
19 AlwaysBreakAfterReturnType: None
20 AlwaysBreakBeforeMultilineStrings: true
21 AlwaysBreakTemplateDeclarations: Yes
22 BinPackArguments: true
23 BinPackParameters: true
24 BraceWrapping:
25 AfterClass: false
26 AfterControlStatement: false
27 AfterEnum: false
28 AfterFunction: false
29 AfterNamespace: false
30 AfterObjCDeclaration: false
31 AfterStruct: false
32 AfterUnion: false
33 AfterExternBlock: false
34 BeforeCatch: false
35 BeforeElse: true
36 IndentBraces: false
37 SplitEmptyFunction: false
38 SplitEmptyRecord: false
39 SplitEmptyNamespace: false
40 BreakBeforeBinaryOperators: None
41 BreakBeforeBraces: Custom
42 BreakBeforeInheritanceComma: false
43 BreakInheritanceList: BeforeColon
44 BreakBeforeTernaryOperators: false
45 BreakConstructorInitializersBeforeComma: false
46 BreakConstructorInitializers: BeforeColon
47 BreakAfterJavaFieldAnnotations: false
48 BreakStringLiterals: true
49 ColumnLimit: 120
50 CommentPragmas: 'NOLINT'
51 CompactNamespaces: false
52 ConstructorInitializerAllOnOneLineOrOnePerLine: true
53 ConstructorInitializerIndentWidth: 4
54 ContinuationIndentWidth: 4
55 Cpp11BracedListStyle: true
56 DerivePointerAlignment: false
57 DisableFormat: false
58 ExperimentalAutoDetectBinPacking: false
59 FixNamespaceComments: true
60 ForEachMacros:
61 - foreach
62 - Q_FOREACH
63 - BOOST_FOREACH
64 IncludeBlocks: Regroup
65
66 # Include categories go like this:
67 # 0: reserved, since this automatically is the primary header for any .cc file
68 # 1: zeek-config.h
69 # 2: any c-style header
70 # 3: any c++-style header
71 # 4: any header that starts with "zeek/"
72 # 5: everything else, which should catch any of the auto-generated code from the
73 # build directory as well
74 # 6: third party doctest header
75 #
76 # Sections 0-1 and 2-3 get grouped together in their respective blocks
77 IncludeCategories:
78 - Regex: '^"zeek-config\.h"'
79 Priority: 1
80 SortPriority: 1
81 - Regex: '^"zeek/zeek-config\.h"'
82 Priority: 1
83 SortPriority: 2
84 - Regex: '^<[[:print:]]+\.(h|hh)>'
85 Priority: 2
86 SortPriority: 2
87 - Regex: '^<[[:print:]]+>'
88 Priority: 2
89 SortPriority: 3
90 - Regex: '^"zeek/3rdparty/doctest.h'
91 Priority: 6
92 - Regex: '^"zeek/'
93 Priority: 4
94 - Regex: '.*'
95 Priority: 5
96
97 IncludeIsMainRegex: '$'
98 IndentCaseLabels: true
99 IndentPPDirectives: None
100 IndentWidth: 4
101 IndentWrappedFunctionNames: false
102 JavaScriptQuotes: Leave
103 JavaScriptWrapImports: true
104 KeepEmptyLinesAtTheStartOfBlocks: false
105 MacroBlockBegin: '^BEGIN_'
106 MacroBlockEnd: '^END_'
107 MaxEmptyLinesToKeep: 2
108 NamespaceIndentation: None
109 ObjCBinPackProtocolList: Auto
110 ObjCBlockIndentWidth: 2
111 ObjCSpaceAfterProperty: false
112 ObjCSpaceBeforeProtocolList: true
113 PenaltyBreakAssignment: 2
114 PenaltyBreakBeforeFirstCallParameter: 500
115 PenaltyBreakComment: 300
116 PenaltyBreakFirstLessLess: 120
117 PenaltyBreakString: 1000
118 PenaltyBreakTemplateDeclaration: 10
119 PenaltyExcessCharacter: 1000000
120 PenaltyReturnTypeOnItsOwnLine: 1000
121 PointerAlignment: Left
122 ReflowComments: true
123 SortIncludes: true
124 SortUsingDeclarations: true
125 SpaceAfterCStyleCast: false
126 SpaceAfterTemplateKeyword: false
127 SpaceAfterLogicalNot: true
128 SpaceBeforeAssignmentOperators: true
129 SpaceBeforeCpp11BracedList: false
130 SpaceBeforeCtorInitializerColon: true
131 SpaceBeforeInheritanceColon: true
132 SpaceBeforeParens: ControlStatements
133 SpaceBeforeRangeBasedForLoopColon: true
134 SpaceInEmptyParentheses: false
135 SpacesBeforeTrailingComments: 1
136 SpacesInAngles: false
137 SpacesInContainerLiterals: true
138 SpacesInCStyleCastParentheses: false
139 SpacesInParentheses: false
140 SpacesInSquareBrackets: false
141 SpacesInConditionalStatement: true
142 Standard: Cpp11
143 StatementMacros:
144 - STANDARD_OPERATOR_1
145 TabWidth: 4
146 UseTab: Never
147 ---
148 Language: Json
149 ...