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