Debian Codegraph @

.clang-format

raw
1 ---
2 Language: Cpp
3 # BasedOnStyle: Google
4 AccessModifierOffset: -4
5 AlignAfterOpenBracket: Align
6 AlignConsecutiveAssignments: true
7 AlignConsecutiveDeclarations: true
8 AlignEscapedNewlinesLeft: true
9 AlignOperands: true
10 AlignTrailingComments: true
11 AllowAllParametersOfDeclarationOnNextLine: true
12 AllowShortBlocksOnASingleLine: true
13 AllowShortCaseLabelsOnASingleLine: false
14 AllowShortFunctionsOnASingleLine: Inline
15 AllowShortIfStatementsOnASingleLine: true
16 AllowShortLoopsOnASingleLine: true
17 AlwaysBreakAfterDefinitionReturnType: None
18 AlwaysBreakAfterReturnType: None
19 AlwaysBreakBeforeMultilineStrings: true
20 AlwaysBreakTemplateDeclarations: true
21 BinPackArguments: true
22 BinPackParameters: true
23 BraceWrapping:
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 BeforeCatch: false
33 BeforeElse: false
34 IndentBraces: false
35 BreakBeforeBinaryOperators: None
36 BreakBeforeBraces: Allman
37 BreakBeforeTernaryOperators: true
38 BreakConstructorInitializersBeforeComma: true
39 BreakAfterJavaFieldAnnotations: false
40 BreakStringLiterals: true
41 ColumnLimit: 0
42 CommentPragmas: '^ IWYU pragma:'
43 ConstructorInitializerAllOnOneLineOrOnePerLine: false
44 ConstructorInitializerIndentWidth: 4
45 ContinuationIndentWidth: 4
46 Cpp11BracedListStyle: true
47 DerivePointerAlignment: false
48 DisableFormat: false
49 ExperimentalAutoDetectBinPacking: false
50 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
51 IncludeCategories:
52 - Regex: '^<[a-z]*>' # language headers like <algorithm>
53 Priority: 1
54 - Regex: '^<.*\.h>' # platform headers like <unistd.h>
55 Priority: 2
56 - Regex: '^<.*' # other external headers
57 Priority: 3
58 - Regex: '.*' # any other files
59 Priority: 4
60 IndentCaseLabels: false
61 IndentWidth: 4
62 IndentWrappedFunctionNames: false
63 KeepEmptyLinesAtTheStartOfBlocks: false
64 MacroBlockBegin: ''
65 MacroBlockEnd: ''
66 MaxEmptyLinesToKeep: 1
67 NamespaceIndentation: None
68 ObjCBlockIndentWidth: 2
69 ObjCSpaceAfterProperty: false
70 ObjCSpaceBeforeProtocolList: false
71 PenaltyBreakBeforeFirstCallParameter: 1
72 PenaltyBreakComment: 300
73 PenaltyBreakFirstLessLess: 120
74 PenaltyBreakString: 1000
75 PenaltyExcessCharacter: 1000000
76 PenaltyReturnTypeOnItsOwnLine: 200
77 PointerAlignment: Left
78 ReflowComments: true
79 SortIncludes: true
80 SpaceAfterCStyleCast: false
81 SpaceBeforeAssignmentOperators: true
82 SpaceBeforeParens: Never
83 SpaceInEmptyParentheses: false
84 SpacesBeforeTrailingComments: 1
85 SpacesInAngles: false
86 SpacesInContainerLiterals: true
87 SpacesInCStyleCastParentheses: false
88 SpacesInParentheses: false
89 SpacesInSquareBrackets: false
90 Standard: Cpp11
91 TabWidth: 4
92 UseTab: Never
93 ...
94