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