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.
7 AccessModifierOffset: -1
8 AlignAfterOpenBracket: Align
9 AlignConsecutiveAssignments: false
10 AlignConsecutiveDeclarations: false
11 AlignEscapedNewlinesLeft: 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
28 AfterControlStatement: false
32 AfterObjCDeclaration: false
38 BreakBeforeBinaryOperators: None
39 BreakBeforeBraces: Attach
40 BreakBeforeTernaryOperators: true
41 BreakConstructorInitializersBeforeComma: false
43 CommentPragmas: '^ IWYU pragma:'
44 ConstructorInitializerAllOnOneLineOrOnePerLine: true
45 ConstructorInitializerIndentWidth: 4
46 ContinuationIndentWidth: 4
47 Cpp11BracedListStyle: false
48 DerivePointerAlignment: true
50 ExperimentalAutoDetectBinPacking: false
53 - Regex: '^"(iotjs_def)'
65 IndentCaseLabels: true
67 IndentWrappedFunctionNames: false
68 KeepEmptyLinesAtTheStartOfBlocks: false
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
85 SpaceAfterCStyleCast: false
86 SpaceBeforeAssignmentOperators: true
87 SpaceBeforeParens: ControlStatements
88 SpaceInEmptyParentheses: false
89 SpacesBeforeTrailingComments: 1
91 SpacesInContainerLiterals: true
92 SpacesInCStyleCastParentheses: false
93 SpacesInParentheses: false
94 SpacesInSquareBrackets: false