Merge branch 'devel/master' into devel/vulkan
[platform/core/uifw/dali-core.git] / .clang-format
1 ---
2 Language:        Cpp
3 BasedOnStyle:  Google
4 AccessModifierOffset: -2
5 AlignAfterOpenBracket: Align
6 AlignConsecutiveAssignments: true
7 AlignConsecutiveDeclarations: true
8
9 AlignEscapedNewlinesLeft: true
10 AlignOperands:   true
11 AlignTrailingComments: true
12 AllowAllParametersOfDeclarationOnNextLine: true
13
14 AllowShortBlocksOnASingleLine: false
15 AllowShortCaseLabelsOnASingleLine: false
16 AllowShortFunctionsOnASingleLine: None
17 AllowShortIfStatementsOnASingleLine: false
18 AllowShortLoopsOnASingleLine: false
19
20 AlwaysBreakAfterDefinitionReturnType: None
21 AlwaysBreakAfterReturnType: None
22 AlwaysBreakBeforeMultilineStrings: true
23 AlwaysBreakTemplateDeclarations: true
24
25 BinPackArguments: true
26 BinPackParameters: true
27
28 BraceWrapping:
29   AfterClass:      false
30   AfterControlStatement: false
31   AfterEnum:       false
32   AfterFunction:   false
33   AfterNamespace:  false
34   AfterObjCDeclaration: false
35   AfterStruct:     false
36   AfterUnion:      false
37   BeforeCatch:     false
38   BeforeElse:      false
39   IndentBraces:    false
40
41 BreakBeforeBinaryOperators: None
42 BreakBeforeBraces: Allman
43 BreakBeforeTernaryOperators: true
44 BreakConstructorInitializersBeforeComma: false
45 BreakAfterJavaFieldAnnotations: false
46 BreakStringLiterals: false
47 ColumnLimit:     100
48 CommentPragmas:  '^ IWYU pragma:'
49 ConstructorInitializerAllOnOneLineOrOnePerLine: true
50 ConstructorInitializerIndentWidth: 0
51 ContinuationIndentWidth: 4
52 Cpp11BracedListStyle: true
53 DerivePointerAlignment: true
54 DisableFormat:   false
55 ExperimentalAutoDetectBinPacking: true
56 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
57 IncludeCategories:
58   - Regex:           '^<.*\.h>'
59     Priority:        1
60   - Regex:           '^<.*'
61     Priority:        2
62   - Regex:           '.*'
63     Priority:        3
64 IncludeIsMainRegex: '([-_](test|unittest))?$'
65 IndentCaseLabels: false
66 IndentWidth:     2
67 IndentWrappedFunctionNames: false
68 JavaScriptQuotes: Leave
69 JavaScriptWrapImports: true
70 KeepEmptyLinesAtTheStartOfBlocks: true
71 MacroBlockBegin: ''
72 MacroBlockEnd:   ''
73 MaxEmptyLinesToKeep: 1
74 NamespaceIndentation: None
75 ObjCBlockIndentWidth: 2
76 ObjCSpaceAfterProperty: false
77 ObjCSpaceBeforeProtocolList: false
78 PenaltyBreakBeforeFirstCallParameter: 50
79 PenaltyBreakComment: 300000000
80 PenaltyBreakFirstLessLess: 120
81 PenaltyBreakString: 1000
82 PenaltyExcessCharacter: 1
83 PenaltyReturnTypeOnItsOwnLine: 200
84 PointerAlignment: Left
85 ReflowComments:  false
86 SortIncludes:    true
87 SpaceAfterCStyleCast: false
88 SpaceAfterTemplateKeyword: false
89 SpaceBeforeAssignmentOperators: true
90 SpaceBeforeParens: Never
91 SpaceInEmptyParentheses: false
92 SpacesBeforeTrailingComments: 1
93 SpacesInAngles:  true
94 SpacesInContainerLiterals: true
95 SpacesInCStyleCastParentheses: true
96 SpacesInParentheses: false
97 SpacesInSquareBrackets: false
98 Standard:        Auto
99 TabWidth:        2
100 UseTab:          Never
101 ...
102
103