Browse code

added clang-format

Andy Ragusa authored on 2019/11/20 00:34:23
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,120 @@
0
+---
1
+Language:        Cpp
2
+AccessModifierOffset: -2
3
+AlignAfterOpenBracket: Align
4
+AlignConsecutiveAssignments: true
5
+AlignConsecutiveDeclarations: false
6
+AlignEscapedNewlines: Left
7
+AlignOperands:   true
8
+AlignTrailingComments: true
9
+AllowAllParametersOfDeclarationOnNextLine: true
10
+AllowShortBlocksOnASingleLine: false
11
+AllowShortCaseLabelsOnASingleLine: false
12
+AllowShortFunctionsOnASingleLine: Empty
13
+AllowShortIfStatementsOnASingleLine: true
14
+AllowShortLoopsOnASingleLine: true
15
+AlwaysBreakAfterDefinitionReturnType: None
16
+AlwaysBreakAfterReturnType: None
17
+AlwaysBreakBeforeMultilineStrings: false
18
+AlwaysBreakTemplateDeclarations: MultiLine
19
+BinPackArguments: true
20
+BinPackParameters: true
21
+BraceWrapping:
22
+  AfterClass:      true
23
+  AfterControlStatement: false
24
+  AfterEnum:       false
25
+  AfterFunction:   true
26
+  AfterNamespace:  true
27
+  AfterObjCDeclaration: false
28
+  AfterStruct:     false
29
+  AfterUnion:      false
30
+  AfterExternBlock: false
31
+  BeforeCatch:     false
32
+  BeforeElse:      false
33
+  IndentBraces:    false
34
+  SplitEmptyFunction: true
35
+  SplitEmptyRecord: true
36
+  SplitEmptyNamespace: true
37
+BreakBeforeBinaryOperators: None
38
+BreakBeforeBraces: Linux
39
+BreakBeforeInheritanceComma: false
40
+BreakInheritanceList: BeforeColon
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: true
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
+ObjCBinPackProtocolList: Auto
82
+ObjCBlockIndentWidth: 2
83
+ObjCSpaceAfterProperty: false
84
+ObjCSpaceBeforeProtocolList: true
85
+PenaltyBreakAssignment: 2
86
+PenaltyBreakBeforeFirstCallParameter: 19
87
+PenaltyBreakComment: 300
88
+PenaltyBreakFirstLessLess: 120
89
+PenaltyBreakString: 1000
90
+PenaltyBreakTemplateDeclaration: 10
91
+PenaltyExcessCharacter: 1000000
92
+PenaltyReturnTypeOnItsOwnLine: 60
93
+PointerAlignment: Right
94
+ReflowComments:  true
95
+SortIncludes:    false
96
+SortUsingDeclarations: true
97
+SpaceAfterCStyleCast: false
98
+SpaceAfterTemplateKeyword: true
99
+SpaceBeforeAssignmentOperators: true
100
+SpaceBeforeCpp11BracedList: false
101
+SpaceBeforeCtorInitializerColon: true
102
+SpaceBeforeInheritanceColon: true
103
+SpaceBeforeParens: ControlStatements
104
+SpaceBeforeRangeBasedForLoopColon: true
105
+SpaceInEmptyParentheses: false
106
+SpacesBeforeTrailingComments: 1
107
+SpacesInAngles:  false
108
+SpacesInContainerLiterals: true
109
+SpacesInCStyleCastParentheses: false
110
+SpacesInParentheses: false
111
+SpacesInSquareBrackets: false
112
+Standard:        Cpp11
113
+StatementMacros:
114
+  - Q_UNUSED
115
+  - QT_REQUIRE_VERSION
116
+TabWidth:        8
117
+UseTab:          Never
118
+...
119
+