Debian Codegraph @

.clang-format

raw
1 # Style file for MLSE Libraries based on the modified rocBLAS style
2
3 # Common settings
4 BasedOnStyle: WebKit
5 TabWidth: 4
6 IndentWidth: 4
7 UseTab: Never
8 ColumnLimit: 100
9
10 # Other languages JavaScript, Proto
11
12 ---
13 Language: Cpp
14
15 # http://releases.llvm.org/6.0.1/tools/clang/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code
16 # int formatted_code;
17 # // clang-format off
18 # void unformatted_code ;
19 # // clang-format on
20 # void formatted_code_again;
21
22 DisableFormat: false
23 Standard: Cpp11
24
25 AccessModifierOffset: -4
26 AlignAfterOpenBracket: Align
27 AlignConsecutiveAssignments: true
28 AlignConsecutiveDeclarations: true
29 AlignEscapedNewlines: Left
30 AlignOperands: true
31 AlignTrailingComments: false
32 AllowAllArgumentsOnNextLine: true
33 AllowAllConstructorInitializersOnNextLine: true
34 AllowAllParametersOfDeclarationOnNextLine: true
35 AllowShortBlocksOnASingleLine: false
36 AllowShortCaseLabelsOnASingleLine: false
37 AllowShortFunctionsOnASingleLine: Empty
38 AllowShortIfStatementsOnASingleLine: false
39 AllowShortLoopsOnASingleLine: false
40 AlwaysBreakAfterDefinitionReturnType: false
41 AlwaysBreakAfterReturnType: None
42 AlwaysBreakBeforeMultilineStrings: false
43 AlwaysBreakTemplateDeclarations: true
44 BinPackArguments: false
45 BinPackParameters: false
46
47 # Configure each individual brace in BraceWrapping
48 BreakBeforeBraces: Custom
49 # Control of individual brace wrapping cases
50 BraceWrapping: {
51 AfterCaseLabel: 'true'
52 AfterClass: 'true'
53 AfterControlStatement: 'true'
54 AfterEnum : 'true'
55 AfterFunction : 'true'
56 AfterNamespace : 'true'
57 AfterStruct : 'true'
58 AfterUnion : 'true'
59 BeforeCatch : 'true'
60 BeforeElse : 'true'
61 IndentBraces : 'false'
62 # AfterExternBlock : 'true'
63 }
64
65 #BreakAfterJavaFieldAnnotations: true
66 #BreakBeforeInheritanceComma: false
67 #BreakBeforeBinaryOperators: None
68 #BreakBeforeTernaryOperators: true
69 #BreakConstructorInitializersBeforeComma: true
70 #BreakStringLiterals: true
71
72 CommentPragmas: '^ IWYU pragma:'
73 #CompactNamespaces: false
74 ConstructorInitializerAllOnOneLineOrOnePerLine: false
75 ConstructorInitializerIndentWidth: 4
76 ContinuationIndentWidth: 4
77 Cpp11BracedListStyle: true
78 SpaceBeforeCpp11BracedList: false
79 DerivePointerAlignment: false
80 ExperimentalAutoDetectBinPacking: false
81 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
82 IndentCaseLabels: false
83 IndentPPDirectives: None
84 #FixNamespaceComments: true
85 IndentWrappedFunctionNames: true
86 KeepEmptyLinesAtTheStartOfBlocks: true
87 MacroBlockBegin: ''
88 MacroBlockEnd: ''
89 #JavaScriptQuotes: Double
90 MaxEmptyLinesToKeep: 1
91 NamespaceIndentation: All
92 ObjCBlockIndentWidth: 4
93 #ObjCSpaceAfterProperty: true
94 #ObjCSpaceBeforeProtocolList: true
95 PenaltyBreakBeforeFirstCallParameter: 19
96 PenaltyBreakComment: 300
97 PenaltyBreakFirstLessLess: 120
98 PenaltyBreakString: 1000
99
100 PenaltyExcessCharacter: 1000000
101 PenaltyReturnTypeOnItsOwnLine: 60
102 PointerAlignment: Left
103 SpaceAfterCStyleCast: false
104 SpaceBeforeAssignmentOperators: true
105 SpaceBeforeParens: Never
106 SpaceInEmptyBlock: false
107 SpaceInEmptyParentheses: false
108 SpacesBeforeTrailingComments: 1
109 SpacesInAngles: false
110 SpacesInContainerLiterals: true
111 SpacesInCStyleCastParentheses: false
112 SpacesInParentheses: false
113 SpacesInSquareBrackets: false
114 #SpaceAfterTemplateKeyword: true
115 #SpaceBeforeInheritanceColon: true
116
117 #SortUsingDeclarations: true
118 SortIncludes: true
119
120 # Comments are for developers, they should arrange them
121 ReflowComments: false
122
123 #IncludeBlocks: Preserve
124 ---