summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-09-18 00:53:53 +0900
committerGravatar Emmanuel Gil Peyrot2016-09-18 09:36:55 +0900
commitdc17944ce4744b91daf68fa5046e6fe5fbb1770a (patch)
tree7673e881935bbc10116f86b76ecebebe40edf057
parentMerge pull request #2080 from yuriks/shader-interp-crash (diff)
downloadyuzu-dc17944ce4744b91daf68fa5046e6fe5fbb1770a.tar.gz
yuzu-dc17944ce4744b91daf68fa5046e6fe5fbb1770a.tar.xz
yuzu-dc17944ce4744b91daf68fa5046e6fe5fbb1770a.zip
Sources: Add a .clang-format configuration file.
-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...