Debian Codegraph @

.clang-format

raw
1 ---
2 # This was based on the Mozilla style from clang-format 3.8.
3 # Effectively creating a snapshot to produce more consistent results with later
4 # versions of clang-format.
5 Language: Cpp
6 AccessModifierOffset: -2
7 AlignAfterOpenBracket: Align
8 AlignConsecutiveAssignments: false
9 AlignConsecutiveDeclarations: false
10 AlignEscapedNewlinesLeft: false
11 AlignOperands: true
12 AlignTrailingComments: true
13 AllowAllParametersOfDeclarationOnNextLine: false
14 AllowShortBlocksOnASingleLine: Empty
15 AllowShortCaseLabelsOnASingleLine: false
16 AllowShortFunctionsOnASingleLine: Inline
17 AllowShortIfStatementsOnASingleLine: false
18 AllowShortLoopsOnASingleLine: false
19 AlwaysBreakAfterDefinitionReturnType: None
20 AlwaysBreakAfterReturnType: None
21 AlwaysBreakBeforeMultilineStrings: false
22 AlwaysBreakTemplateDeclarations: true
23 BinPackArguments: true
24 BinPackParameters: true
25 BraceWrapping:
26 AfterClass: true
27 AfterControlStatement: false
28 AfterEnum: true
29 AfterFunction: true
30 AfterNamespace: false
31 AfterObjCDeclaration: false
32 AfterStruct: true
33 AfterUnion: true
34 BeforeCatch: false
35 BeforeElse: false
36 IndentBraces: false
37 BreakBeforeBinaryOperators: None
38 BreakBeforeBraces: Mozilla
39 BreakBeforeTernaryOperators: true
40 BreakConstructorInitializersBeforeComma: false
41 ColumnLimit: 80
42 CommentPragmas: '^ IWYU pragma:'
43 ConstructorInitializerAllOnOneLineOrOnePerLine: false
44 ConstructorInitializerIndentWidth: 2
45 ContinuationIndentWidth: 2
46 Cpp11BracedListStyle: false
47 DerivePointerAlignment: false
48 DisableFormat: false
49 ExperimentalAutoDetectBinPacking: false
50 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
51 IncludeCategories:
52 - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
53 Priority: 2
54 - Regex: '^(<|"(gtest|isl|json)/)'
55 Priority: 3
56 - Regex: '.*'
57 Priority: 1
58 IndentCaseLabels: true
59 IndentWidth: 2
60 IndentWrappedFunctionNames: false
61 KeepEmptyLinesAtTheStartOfBlocks: true
62 MacroBlockBegin: ''
63 MacroBlockEnd: ''
64 MaxEmptyLinesToKeep: 1
65 NamespaceIndentation: None
66 ObjCBlockIndentWidth: 2
67 ObjCSpaceAfterProperty: true
68 ObjCSpaceBeforeProtocolList: false
69 PenaltyBreakBeforeFirstCallParameter: 19
70 PenaltyBreakComment: 300
71 PenaltyBreakFirstLessLess: 120
72 PenaltyBreakString: 1000
73 PenaltyExcessCharacter: 1000000
74 PenaltyReturnTypeOnItsOwnLine: 200
75 PointerAlignment: Left
76 ReflowComments: true
77 SortIncludes: false
78 SpaceAfterCStyleCast: false
79 SpaceBeforeAssignmentOperators: true
80 SpaceBeforeParens: ControlStatements
81 SpaceInEmptyParentheses: false
82 SpacesBeforeTrailingComments: 1
83 SpacesInAngles: false
84 SpacesInContainerLiterals: true
85 SpacesInCStyleCastParentheses: false
86 SpacesInParentheses: false
87 SpacesInSquareBrackets: false
88 Standard: Cpp11
89 TabWidth: 8
90 UseTab: Never
91 ...
92