clang-format: Change SpaceAfterTemplateKeyword to false
[WebKit-https.git] / .clang-format
1 ---
2 # BasedOnStyle:  WebKit
3 AccessModifierOffset: -4
4 AlignAfterOpenBracket: DontAlign
5 AlignConsecutiveAssignments: false
6 AlignConsecutiveDeclarations: false
7 AlignEscapedNewlines: Right
8 AlignOperands:   false
9 AlignTrailingComments: false
10 AllowAllParametersOfDeclarationOnNextLine: true
11 AllowShortBlocksOnASingleLine: false
12 AllowShortCaseLabelsOnASingleLine: false
13 AllowShortFunctionsOnASingleLine: All
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: false
19 AlwaysBreakTemplateDeclarations: No
20 BinPackArguments: true
21 BinPackParameters: true
22 BraceWrapping:   
23   AfterClass:      false
24   AfterControlStatement: false
25   AfterEnum:       false
26   AfterFunction:   true
27   AfterNamespace:  false
28   AfterObjCDeclaration: false
29   AfterStruct:     false
30   AfterUnion:      false
31   BeforeCatch:     false
32   BeforeElse:      false
33   IndentBraces:    false
34   SplitEmptyFunction: true
35   SplitEmptyRecord: true
36   SplitEmptyNamespace: true
37 BreakBeforeBinaryOperators: All
38 BreakBeforeBraces: WebKit
39 BreakBeforeInheritanceComma: false
40 BreakBeforeTernaryOperators: true
41 BreakConstructorInitializersBeforeComma: false
42 BreakConstructorInitializers: BeforeComma
43 BreakAfterJavaFieldAnnotations: false
44 BreakStringLiterals: true
45 ColumnLimit:     0
46 CommentPragmas:  '^ IWYU pragma:'
47 CompactNamespaces: false
48 ConstructorInitializerAllOnOneLineOrOnePerLine: false
49 ConstructorInitializerIndentWidth: 4
50 ContinuationIndentWidth: 4
51 Cpp11BracedListStyle: false
52 DerivePointerAlignment: false
53 DisableFormat:   false
54 ExperimentalAutoDetectBinPacking: false
55 FixNamespaceComments: false
56 ForEachMacros:   
57   - foreach
58   - Q_FOREACH
59   - BOOST_FOREACH
60 IncludeCategories:
61   - Regex:           '^"config\.h"'
62     Priority:        -1
63   # The main header for a source file automatically gets category 0
64   - Regex:           '^<.*SoftLink.h>'
65     Priority:        4
66   - Regex:           '^".*SoftLink.h"'
67     Priority:        3
68   - Regex:           '^<.*>'
69     Priority:        2
70   - Regex:           '.*'
71     Priority:        1
72 IncludeIsMainRegex: '(Test)?$'
73 IndentCaseLabels: false
74 IndentWidth:     4
75 IndentWrappedFunctionNames: false
76 JavaScriptQuotes: Leave
77 JavaScriptWrapImports: true
78 KeepEmptyLinesAtTheStartOfBlocks: true
79 MacroBlockBegin: ''
80 MacroBlockEnd:   ''
81 MaxEmptyLinesToKeep: 1
82 NamespaceIndentation: None
83 ObjCBlockIndentWidth: 4
84 ObjCSpaceAfterProperty: true
85 ObjCSpaceBeforeProtocolList: true
86 PenaltyBreakAssignment: 2
87 PenaltyBreakBeforeFirstCallParameter: 19
88 PenaltyBreakComment: 300
89 PenaltyBreakFirstLessLess: 120
90 PenaltyBreakString: 1000
91 PenaltyExcessCharacter: 1000000
92 PenaltyReturnTypeOnItsOwnLine: 60
93 PointerAlignment: Left
94 ReflowComments:  true
95 SortIncludes:    true
96 SortUsingDeclarations: true
97 SpaceAfterCStyleCast: false
98 SpaceAfterTemplateKeyword: false
99 SpaceBeforeAssignmentOperators: true
100 SpaceBeforeCpp11BracedList: true
101 SpaceBeforeParens: ControlStatements
102 SpaceInEmptyParentheses: false
103 SpacesBeforeTrailingComments: 1
104 SpacesInAngles:  false
105 SpacesInContainerLiterals: true
106 SpacesInCStyleCastParentheses: false
107 SpacesInParentheses: false
108 SpacesInSquareBrackets: false
109 Standard:        Cpp11
110 TabWidth:        8
111 UseTab:          Never
112 ---
113 Language: ObjC
114 PointerAlignment: Right
115 ...