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