[Coverity] Fix coverity issues
[platform/core/ml/nntrainer.git] / .clang-format
1 ---
2 Language:        Cpp
3 AccessModifierOffset: -2
4 AlignAfterOpenBracket: Align
5 AlignEscapedNewlinesLeft: true
6 AlignConsecutiveAssignments: false
7 AlignConsecutiveDeclarations: false
8 AlignOperands:   true
9 AlignTrailingComments: true
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: false
20 BinPackArguments: true
21 BinPackParameters: true
22 BraceWrapping:
23   AfterClass:      false
24   AfterControlStatement: false
25   AfterEnum:       false
26   AfterFunction:   false
27   AfterNamespace:  false
28   AfterObjCDeclaration: false
29   AfterStruct:     false
30   AfterUnion:      false
31   BeforeCatch:     false
32   BeforeElse:      false
33   IndentBraces:    false
34 BreakBeforeBraces: Attach
35 BreakBeforeTernaryOperators: true
36 BreakConstructorInitializersBeforeComma: false
37 BreakConstructorInitializers: AfterColon
38 BreakAfterJavaFieldAnnotations: false
39 BreakStringLiterals: true
40 ColumnLimit:     80
41 CommentPragmas:  '^ IWYU pragma:'
42 ConstructorInitializerAllOnOneLineOrOnePerLine: true
43 ConstructorInitializerIndentWidth: 2
44 ContinuationIndentWidth: 2
45 Cpp11BracedListStyle: true
46 DerivePointerAlignment: false
47 DisableFormat:   false
48 ExperimentalAutoDetectBinPacking: false
49 IncludeCategories:
50   - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
51     Priority:        2
52   - Regex:           '^(<|"(gtest|isl|json)/)'
53     Priority:        3
54   - Regex:           '.*'
55     Priority:        1
56 IndentCaseLabels: false
57 IndentWidth:     2
58 IndentWrappedFunctionNames: false
59 JavaScriptQuotes: Leave
60 JavaScriptWrapImports: true
61 KeepEmptyLinesAtTheStartOfBlocks: true
62 MacroBlockBegin: ''
63 MacroBlockEnd:   ''
64 MaxEmptyLinesToKeep: 1
65 NamespaceIndentation: None
66 ObjCBlockIndentWidth: 2
67 ObjCSpaceAfterProperty: false
68 ObjCSpaceBeforeProtocolList: true
69 PenaltyBreakBeforeFirstCallParameter: 19
70 PenaltyBreakComment: 300
71 PenaltyBreakFirstLessLess: 120
72 PenaltyBreakString: 1000
73 PenaltyExcessCharacter: 1000000
74 PenaltyReturnTypeOnItsOwnLine: 60
75 PointerAlignment: Right
76 ReflowComments:  true
77 SortIncludes:    true
78 SpaceAfterCStyleCast: false
79 SpaceBeforeAssignmentOperators: true
80 SpaceBeforeParens: ControlStatements
81 SpaceInEmptyParentheses: false
82 SpacesBeforeTrailingComments: 1
83 SpacesInAngles:  false
84 SpacesInContainerLiterals: true
85 SpacesInCStyleCastParentheses: false
86 SpacesInParentheses: false
87 SpacesInSquareBrackets: false
88 Standard:        Cpp11
89 TabWidth:        2
90 UseTab:          Never