summaryrefslogtreecommitdiff
path: root/src/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'src/.clang-format')
-rw-r--r--src/.clang-format89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/.clang-format b/src/.clang-format
new file mode 100644
index 000000000..794df84ae
--- /dev/null
+++ b/src/.clang-format
@@ -0,0 +1,89 @@
1---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -4
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlinesLeft: false
9AlignOperands: true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: false
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
17AlwaysBreakAfterDefinitionReturnType: None
18AlwaysBreakAfterReturnType: None
19AlwaysBreakBeforeMultilineStrings: false
20AlwaysBreakTemplateDeclarations: true
21BinPackArguments: true
22BinPackParameters: true
23BraceWrapping:
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
35BreakBeforeBinaryOperators: None
36BreakBeforeBraces: Attach
37BreakBeforeTernaryOperators: true
38BreakConstructorInitializersBeforeComma: false
39ColumnLimit: 100
40CommentPragmas: '^ IWYU pragma:'
41ConstructorInitializerAllOnOneLineOrOnePerLine: false
42ConstructorInitializerIndentWidth: 4
43ContinuationIndentWidth: 4
44Cpp11BracedListStyle: true
45DerivePointerAlignment: false
46DisableFormat: false
47ExperimentalAutoDetectBinPacking: false
48ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
49IncludeCategories:
50 - Regex: '^\<[wW]indows.h\>'
51 Priority: 1
52 - Regex: '^\<(boost|catch|dynarmic|glad|inih|nihstro)/'
53 Priority: 3
54 - Regex: '^\<'
55 Priority: 2
56IndentCaseLabels: false
57IndentWidth: 4
58IndentWrappedFunctionNames: false
59KeepEmptyLinesAtTheStartOfBlocks: true
60MacroBlockBegin: ''
61MacroBlockEnd: ''
62MaxEmptyLinesToKeep: 1
63NamespaceIndentation: None
64ObjCBlockIndentWidth: 2
65ObjCSpaceAfterProperty: false
66ObjCSpaceBeforeProtocolList: true
67PenaltyBreakBeforeFirstCallParameter: 19
68PenaltyBreakComment: 300
69PenaltyBreakFirstLessLess: 120
70PenaltyBreakString: 1000
71PenaltyExcessCharacter: 1000000
72PenaltyReturnTypeOnItsOwnLine: 60
73PointerAlignment: Left
74ReflowComments: true
75SortIncludes: true
76SpaceAfterCStyleCast: false
77SpaceBeforeAssignmentOperators: true
78SpaceBeforeParens: ControlStatements
79SpaceInEmptyParentheses: false
80SpacesBeforeTrailingComments: 1
81SpacesInAngles: false
82SpacesInContainerLiterals: true
83SpacesInCStyleCastParentheses: false
84SpacesInParentheses: false
85SpacesInSquareBrackets: false
86Standard: Cpp11
87TabWidth: 4
88UseTab: Never
89...