]> granicus.if.org Git - vnstat/blob - .clang-format
refactor timeused() test to not expect specific range of system performance
[vnstat] / .clang-format
1 ---
2 Language:        Cpp
3 AccessModifierOffset: -2
4 AlignAfterOpenBracket: Align
5 AlignConsecutiveAssignments: false
6 AlignConsecutiveDeclarations: false
7 AlignEscapedNewlines: Right
8 AlignOperands:   true
9 AlignTrailingComments: true
10 AllowAllParametersOfDeclarationOnNextLine: true
11 AllowShortBlocksOnASingleLine: false
12 AllowShortCaseLabelsOnASingleLine: false
13 AllowShortFunctionsOnASingleLine: All
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: false
19 AlwaysBreakTemplateDeclarations: false
20 BinPackArguments: true
21 BinPackParameters: true
22 BraceWrapping:
23   AfterClass:      true
24   AfterControlStatement: false
25   AfterEnum:       false
26   AfterFunction:   true
27   AfterNamespace:  true
28   AfterObjCDeclaration: false
29   AfterStruct:     false
30   AfterUnion:      false
31   AfterExternBlock: false
32   BeforeCatch:     false
33   BeforeElse:      false
34   IndentBraces:    false
35   SplitEmptyFunction: true
36   SplitEmptyRecord: true
37   SplitEmptyNamespace: true
38 BreakBeforeBinaryOperators: None
39 BreakBeforeBraces: Linux
40 BreakBeforeInheritanceComma: false
41 BreakBeforeTernaryOperators: true
42 BreakConstructorInitializersBeforeComma: false
43 BreakConstructorInitializers: BeforeColon
44 BreakAfterJavaFieldAnnotations: false
45 BreakStringLiterals: true
46 ColumnLimit:     0
47 CommentPragmas:  '^ IWYU pragma:'
48 CompactNamespaces: false
49 ConstructorInitializerAllOnOneLineOrOnePerLine: false
50 ConstructorInitializerIndentWidth: 4
51 ContinuationIndentWidth: 4
52 Cpp11BracedListStyle: true
53 DerivePointerAlignment: false
54 DisableFormat:   false
55 ExperimentalAutoDetectBinPacking: false
56 FixNamespaceComments: true
57 ForEachMacros:
58   - foreach
59   - Q_FOREACH
60   - BOOST_FOREACH
61 IncludeBlocks:   Preserve
62 IncludeCategories:
63   - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
64     Priority:        2
65   - Regex:           '^(<|"(gtest|gmock|isl|json)/)'
66     Priority:        3
67   - Regex:           '.*'
68     Priority:        1
69 IncludeIsMainRegex: '(Test)?$'
70 IndentCaseLabels: true
71 IndentPPDirectives: None
72 IndentWidth:     4
73 IndentWrappedFunctionNames: false
74 JavaScriptQuotes: Leave
75 JavaScriptWrapImports: true
76 KeepEmptyLinesAtTheStartOfBlocks: true
77 MacroBlockBegin: ''
78 MacroBlockEnd:   ''
79 MaxEmptyLinesToKeep: 1
80 NamespaceIndentation: None
81 ObjCBlockIndentWidth: 2
82 ObjCSpaceAfterProperty: false
83 ObjCSpaceBeforeProtocolList: true
84 PenaltyBreakAssignment: 2
85 PenaltyBreakBeforeFirstCallParameter: 19
86 PenaltyBreakComment: 300
87 PenaltyBreakFirstLessLess: 120
88 PenaltyBreakString: 1000
89 PenaltyExcessCharacter: 1000000
90 PenaltyReturnTypeOnItsOwnLine: 60
91 PointerAlignment: Right
92 RawStringFormats:
93   - Delimiter:       pb
94     Language:        TextProto
95     BasedOnStyle:    google
96 ReflowComments:  true
97 SortIncludes:    false
98 SortUsingDeclarations: true
99 SpaceAfterCStyleCast: false
100 SpaceAfterTemplateKeyword: true
101 SpaceBeforeAssignmentOperators: true
102 SpaceBeforeParens: ControlStatements
103 SpaceInEmptyParentheses: false
104 SpacesBeforeTrailingComments: 1
105 SpacesInAngles:  false
106 SpacesInContainerLiterals: true
107 SpacesInCStyleCastParentheses: false
108 SpacesInParentheses: false
109 SpacesInSquareBrackets: false
110 Standard:        Auto
111 TabWidth:        4
112 UseTab:          Always
113 ...