src/third-party/discord-rpc/.clang-format (view raw)
1---
2AccessModifierOffset: -4
3AlignAfterOpenBracket: true
4AlignConsecutiveAssignments: false
5AlignConsecutiveDeclarations: false
6AlignEscapedNewlines: Left
7AlignOperands: false
8AlignTrailingComments: true
9AllowAllParametersOfDeclarationOnNextLine: false
10AllowShortBlocksOnASingleLine: false
11AllowShortCaseLabelsOnASingleLine: false
12AllowShortFunctionsOnASingleLine: InlineOnly
13AllowShortIfStatementsOnASingleLine: false
14AllowShortLoopsOnASingleLine: false
15AlwaysBreakAfterReturnType: None
16AlwaysBreakBeforeMultilineStrings: false
17AlwaysBreakTemplateDeclarations: true
18BinPackArguments: false
19BinPackParameters: false
20BreakBeforeBinaryOperators: None
21BreakBeforeBraces: Stroustrup
22BreakBeforeInheritanceComma: true
23BreakBeforeTernaryOperators: true
24BreakConstructorInitializers: BeforeComma
25BreakStringLiterals: true
26ColumnLimit: 100
27CommentPragmas: ''
28CompactNamespaces: false
29ConstructorInitializerAllOnOneLineOrOnePerLine: false
30ConstructorInitializerIndentWidth: 2
31ContinuationIndentWidth: 2
32Cpp11BracedListStyle: true
33DerivePointerAlignment: false
34DisableFormat: false
35FixNamespaceComments: true
36ForEachMacros: []
37IndentCaseLabels: false
38IncludeCategories:
39 - Regex: '^("|<)stdafx\.h(pp)?("|>)'
40 Priority: -1
41 - Regex: '^<(W|w)indows.h>'
42 Priority: 1
43 - Regex: '^<'
44 Priority: 2
45 - Regex: '.*'
46 Priority: 3
47IncludeIsMainRegex: '(_test|_win|_linux|_mac|_ios|_osx|_null)?$'
48IndentCaseLabels: false
49IndentWidth: 4
50IndentWrappedFunctionNames: false
51KeepEmptyLinesAtTheStartOfBlocks: false
52MacroBlockBegin: ''
53MacroBlockEnd: ''
54MaxEmptyLinesToKeep: 1
55NamespaceIndentation: None
56PenaltyBreakAssignment: 0
57PenaltyBreakBeforeFirstCallParameter: 1
58PenaltyBreakComment: 300
59PenaltyBreakFirstLessLess: 120
60PenaltyBreakString: 1000
61PenaltyExcessCharacter: 1000000
62PenaltyReturnTypeOnItsOwnLine: 9999999
63PointerAlignment: Left
64ReflowComments: true
65SortIncludes: false
66SortUsingDeclarations: true
67SpaceAfterCStyleCast: false
68SpaceAfterTemplateKeyword: true
69SpaceBeforeAssignmentOperators: true
70SpaceBeforeParens: ControlStatements
71SpaceInEmptyParentheses: false
72SpacesBeforeTrailingComments: 1
73SpacesInAngles: false
74SpacesInCStyleCastParentheses: false
75SpacesInContainerLiterals: true
76SpacesInParentheses: false
77SpacesInSquareBrackets: false
78Standard: Cpp11
79TabWidth: 4
80UseTab: Never
81---
82Language: Cpp
83---
84Language: ObjC
85ObjCBlockIndentWidth: 4
86ObjCSpaceAfterProperty: true
87ObjCSpaceBeforeProtocolList: false
88---
89Language: Java
90BasedOnStyle: Google
91BreakAfterJavaFieldAnnotations: true
92...