7dcf11cad41984dcc664708371ad1e8661c0a4f7
[platform/core/ml/nnfw.git] / .clang-format
1 ---
2 Language:        Cpp
3 BasedOnStyle: Google
4 AccessModifierOffset: -2
5 AlignAfterOpenBracket: Align
6 AlignEscapedNewlinesLeft: true
7 AlignConsecutiveAssignments: false
8 AlignConsecutiveDeclarations: false
9 AlignOperands:   true
10 AlignTrailingComments: true
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:      true
25   AfterControlStatement: true
26   AfterEnum:       false
27   AfterFunction:   true
28   AfterNamespace:  false
29   AfterObjCDeclaration: false
30   AfterStruct:     true
31   AfterUnion:      true
32   BeforeCatch:     true
33   BeforeElse:      true
34   IndentBraces:    false
35 BreakBeforeBraces: Allman
36 BreakBeforeTernaryOperators: true
37 BreakConstructorInitializersBeforeComma: false
38 BreakAfterJavaFieldAnnotations: false
39 BreakStringLiterals: true
40 ColumnLimit:     100
41 CommentPragmas:  '^ IWYU pragma:'
42 ConstructorInitializerAllOnOneLineOrOnePerLine: false
43 ConstructorInitializerIndentWidth: 4
44 ContinuationIndentWidth: 4
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: true
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:    false
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:        4
90 UseTab:          Never