support armv7hl build
[platform/upstream/iotjs.git] / .clang-format
1 # This file is generated by below command,
2 # $ clang-format-3.8 -style=google -dump-config  > .clang-format
3 # then modified according to IoT.js style guide.
4 ---
5 Language:        Cpp
6 # BasedOnStyle:  Google
7 AccessModifierOffset: -1
8 AlignAfterOpenBracket: Align
9 AlignConsecutiveAssignments: false
10 AlignConsecutiveDeclarations: false
11 AlignEscapedNewlinesLeft: true
12 AlignOperands:   true
13 AlignTrailingComments: true
14 AllowAllParametersOfDeclarationOnNextLine: true
15 AllowShortBlocksOnASingleLine: false
16 AllowShortCaseLabelsOnASingleLine: false
17 AllowShortFunctionsOnASingleLine: None
18 AllowShortIfStatementsOnASingleLine: false
19 AllowShortLoopsOnASingleLine: false
20 AlwaysBreakAfterDefinitionReturnType: None
21 AlwaysBreakAfterReturnType: None
22 AlwaysBreakBeforeMultilineStrings: true
23 AlwaysBreakTemplateDeclarations: true
24 BinPackArguments: true
25 BinPackParameters: true
26 BraceWrapping:
27   AfterClass:      false
28   AfterControlStatement: false
29   AfterEnum:       false
30   AfterFunction:   false
31   AfterNamespace:  false
32   AfterObjCDeclaration: false
33   AfterStruct:     false
34   AfterUnion:      false
35   BeforeCatch:     false
36   BeforeElse:      false
37   IndentBraces:    false
38 BreakBeforeBinaryOperators: None
39 BreakBeforeBraces: Attach
40 BreakBeforeTernaryOperators: true
41 BreakConstructorInitializersBeforeComma: false
42 ColumnLimit:     80
43 CommentPragmas:  '^ IWYU pragma:'
44 ConstructorInitializerAllOnOneLineOrOnePerLine: true
45 ConstructorInitializerIndentWidth: 4
46 ContinuationIndentWidth: 4
47 Cpp11BracedListStyle: false
48 DerivePointerAlignment: true
49 DisableFormat:   false
50 ExperimentalAutoDetectBinPacking: false
51 ForEachMacros:   [ ]
52 IncludeCategories:
53   - Regex:           '^"(iotjs_def)'
54     Priority:        -1
55   - Regex:           '^.iotjs'
56     Priority:        1
57   - Regex:           '^.jerry'
58     Priority:        2
59   - Regex:           '^.uv'
60     Priority:        2
61   - Regex:           '^.http'
62     Priority:        2
63   - Regex:           '^(<)'
64     Priority:        3
65 IndentCaseLabels: true
66 IndentWidth:     2
67 IndentWrappedFunctionNames: false
68 KeepEmptyLinesAtTheStartOfBlocks: false
69 MacroBlockBegin: ''
70 MacroBlockEnd:   ''
71 MaxEmptyLinesToKeep: 2
72 NamespaceIndentation: None
73 ObjCBlockIndentWidth: 2
74 ObjCSpaceAfterProperty: false
75 ObjCSpaceBeforeProtocolList: false
76 PenaltyBreakBeforeFirstCallParameter: 500
77 PenaltyBreakComment: 300
78 PenaltyBreakFirstLessLess: 120
79 PenaltyBreakString: 1000
80 PenaltyExcessCharacter: 1000000
81 PenaltyReturnTypeOnItsOwnLine: 200
82 PointerAlignment: Left
83 ReflowComments:  true
84 SortIncludes:    true
85 SpaceAfterCStyleCast: false
86 SpaceBeforeAssignmentOperators: true
87 SpaceBeforeParens: ControlStatements
88 SpaceInEmptyParentheses: false
89 SpacesBeforeTrailingComments: 1
90 SpacesInAngles:  false
91 SpacesInContainerLiterals: true
92 SpacesInCStyleCastParentheses: false
93 SpacesInParentheses: false
94 SpacesInSquareBrackets: false
95 Standard:        Auto
96 TabWidth:        8
97 UseTab:          Never
98 ...
99