Merge pull request #22123 from CastagnaIT/fix_sami
[xbmc.git] / .clang-format
blobbb9f65714f1f8a65cc4f7ae68bea134c007867a6
1 ---
2 # BasedOnStyle:  LLVM
3 AccessModifierOffset: -2
4 AlignAfterOpenBracket: Align
5 AlignConsecutiveAssignments: false
6 AlignConsecutiveDeclarations: false
7 AlignEscapedNewlines: DontAlign
8 AlignOperands:   true
9 AlignTrailingComments: false
10 AllowAllParametersOfDeclarationOnNextLine: true
11 AllowShortBlocksOnASingleLine: false
12 AllowShortCaseLabelsOnASingleLine: false
13 AllowShortFunctionsOnASingleLine: InlineOnly
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: false
19 AlwaysBreakTemplateDeclarations: true
20 BinPackArguments: true
21 BinPackParameters: false
22 BreakBeforeBinaryOperators: None
23 BreakBeforeBraces: Allman
24 BreakBeforeTernaryOperators: true
25 BreakConstructorInitializersBeforeComma: false
26 BreakConstructorInitializers: BeforeColon
27 BreakAfterJavaFieldAnnotations: false
28 BreakStringLiterals: true
29 ColumnLimit:     100
30 CommentPragmas:  '^ IWYU pragma:'
31 ConstructorInitializerAllOnOneLineOrOnePerLine: true
32 ConstructorInitializerIndentWidth: 2
33 ContinuationIndentWidth: 4
34 Cpp11BracedListStyle: true
35 DerivePointerAlignment: false
36 DisableFormat:   false
37 ExperimentalAutoDetectBinPacking: false
38 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
39 IncludeBlocks: Regroup
40 IncludeCategories:
41   - Regex:           '(["/]PlatformDefs|"(system|system_gl))\.h"'
42     Priority:        5
43   - Regex:           '"platform/[^/]+/'
44     Priority:        2
45   - Regex:           '^<[a-z0-9_]+>$'
46     Priority:        3
47   - Regex:           '^<(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h>$'
48     Priority:        3
49   - Regex:           '^<'
50     Priority:        4
51   - Regex:           '.*'
52     Priority:        1
53 IncludeIsMainRegex: '$'
54 IndentCaseLabels: true
55 IndentWidth:     2
56 IndentWrappedFunctionNames: false
57 JavaScriptQuotes: Leave
58 JavaScriptWrapImports: true
59 KeepEmptyLinesAtTheStartOfBlocks: true
60 MacroBlockBegin: ''
61 MacroBlockEnd:   ''
62 MaxEmptyLinesToKeep: 1
63 NamespaceIndentation: None
64 ObjCBlockIndentWidth: 2
65 ObjCSpaceAfterProperty: false
66 ObjCSpaceBeforeProtocolList: true
67 PenaltyBreakBeforeFirstCallParameter: 19
68 PenaltyBreakComment: 300
69 PenaltyBreakFirstLessLess: 120
70 PenaltyBreakString: 1000
71 PenaltyExcessCharacter: 1000000
72 PenaltyReturnTypeOnItsOwnLine: 60000
73 PointerAlignment: Left
74 ReflowComments:  false
75 SortIncludes:    true
76 SpaceAfterCStyleCast: false
77 SpaceAfterTemplateKeyword: false
78 SpaceBeforeAssignmentOperators: true
79 SpaceBeforeParens: ControlStatements
80 SpaceInEmptyParentheses: false
81 SpacesBeforeTrailingComments: 1
82 SpacesInAngles:  false
83 SpacesInContainerLiterals: true
84 SpacesInCStyleCastParentheses: false
85 SpacesInParentheses: false
86 SpacesInSquareBrackets: false
87 Standard:        Cpp11
88 TabWidth:        8
89 UseTab:          Never
90 ...