blob: bdaff4208e55a4b69c63c24440c602ce3f7d581f [file] [log] [blame]
Alexander Afanasyeveda3b7a2016-12-25 11:26:40 -08001# This style requires clang-format 4.0.0 or later
2#
3BasedOnStyle: GNU
4---
5Language: Cpp
6ColumnLimit: 100
7
8AccessModifierOffset: -2
9AlignAfterOpenBracket: Align
10AlignConsecutiveAssignments: false
11AlignConsecutiveDeclarations: false
12AlignEscapedNewlinesLeft: true
13AlignOperands: true
14AlignTrailingComments: true
15AllowAllParametersOfDeclarationOnNextLine: false
16AllowShortBlocksOnASingleLine: false
17AllowShortCaseLabelsOnASingleLine: false
18AllowShortFunctionsOnASingleLine: None
19AllowShortIfStatementsOnASingleLine: false
20AllowShortLoopsOnASingleLine: false
21AlwaysBreakAfterDefinitionReturnType: All
22AlwaysBreakAfterReturnType: All
23AlwaysBreakBeforeMultilineStrings: false
24AlwaysBreakTemplateDeclarations: true
25BinPackArguments: true
26BinPackParameters: true
27BraceWrapping:
28 AfterClass: true
29 AfterControlStatement: false
30 AfterEnum: false
31 AfterFunction: true
32 AfterNamespace: false
33 AfterObjCDeclaration: false
34 AfterStruct: true
35 AfterUnion: true
36 BeforeCatch: true
37 BeforeElse: true
38 IndentBraces: false
39# BreakBeforeBinaryOperators: NonAssignment
40BreakBeforeBinaryOperators: None
41BreakBeforeBraces: Custom
42BreakBeforeTernaryOperators: true
43BreakConstructorInitializersBeforeComma: true
44BreakStringLiterals: false
45CommentPragmas: '^ IWYU pragma:'
46ConstructorInitializerAllOnOneLineOrOnePerLine: false
47ConstructorInitializerIndentWidth: 2
48ContinuationIndentWidth: 2
49Cpp11BracedListStyle: true
50DerivePointerAlignment: false
51DisableFormat: false
52ExperimentalAutoDetectBinPacking: true
53ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
54IncludeCategories:
55 - Regex: '^"[^/]*"'
56 Priority: 1
57 - Regex: '^"tests/'
58 Priority: 3
59 - Regex: '^".*'
60 Priority: 2
61 - Regex: '^<ndn-cxx/'
62 Priority: 8
63 - Regex: '^<boost/'
64 Priority: 9
65 - Regex: '^<.*'
66 Priority: 10
67# IncludeIsMainRegex: '(\.t)?$' ### clang >= 3.9
68IndentCaseLabels: true
69IndentWidth: 2
70IndentWrappedFunctionNames: false
71KeepEmptyLinesAtTheStartOfBlocks: false
72MacroBlockBegin: ''
73MacroBlockEnd: ''
74MaxEmptyLinesToKeep: 2
75NamespaceIndentation: None
76ObjCBlockIndentWidth: 2
77ObjCSpaceAfterProperty: true
78ObjCSpaceBeforeProtocolList: false
79PenaltyBreakBeforeFirstCallParameter: 2000
80PenaltyBreakComment: 500
81PenaltyBreakFirstLessLess: 200
82PenaltyBreakString: 100
83PenaltyExcessCharacter: 10
84PenaltyReturnTypeOnItsOwnLine: 0
85PointerAlignment: Left
86ReflowComments: false
87SortIncludes: true
88SpaceAfterCStyleCast: false
89SpaceBeforeAssignmentOperators: true
90SpaceBeforeParens: ControlStatements
91SpaceInEmptyParentheses: false
92SpacesBeforeTrailingComments: 1
93SpacesInAngles: false
94SpacesInContainerLiterals: false
95SpacesInCStyleCastParentheses: false
96SpacesInParentheses: false
97SpacesInSquareBrackets: false
98Standard: Cpp11
99TabWidth: 4
100UseTab: Never
101---
102Language: JavaScript
103
104AccessModifierOffset: -2
105AlignAfterOpenBracket: Align
106AlignConsecutiveAssignments: false
107AlignConsecutiveDeclarations: false
108AlignEscapedNewlinesLeft: true
109AlignOperands: true
110AlignTrailingComments: true
111AllowAllParametersOfDeclarationOnNextLine: false
112AllowShortBlocksOnASingleLine: false
113AllowShortCaseLabelsOnASingleLine: false
114AllowShortFunctionsOnASingleLine: None
115AllowShortIfStatementsOnASingleLine: false
116AllowShortLoopsOnASingleLine: false
117AlwaysBreakAfterDefinitionReturnType: All
118AlwaysBreakAfterReturnType: All
119AlwaysBreakBeforeMultilineStrings: false
120AlwaysBreakTemplateDeclarations: true
121BinPackArguments: true
122BinPackParameters: true
123BraceWrapping:
124 AfterClass: true
125 AfterControlStatement: false
126 AfterEnum: false
127 AfterFunction: true
128 AfterNamespace: false
129 AfterObjCDeclaration: false
130 AfterStruct: true
131 AfterUnion: true
132 BeforeCatch: true
133 BeforeElse: true
134 IndentBraces: false
135# BreakBeforeBinaryOperators: NonAssignment
136BreakBeforeBinaryOperators: None
137BreakBeforeBraces: Custom
138BreakBeforeTernaryOperators: true
139BreakConstructorInitializersBeforeComma: true
140BreakStringLiterals: false
141CommentPragmas: '^ IWYU pragma:'
142ConstructorInitializerAllOnOneLineOrOnePerLine: false
143ConstructorInitializerIndentWidth: 2
144ContinuationIndentWidth: 2
145Cpp11BracedListStyle: true
146DerivePointerAlignment: false
147DisableFormat: false
148ExperimentalAutoDetectBinPacking: true
149IndentCaseLabels: true
150IndentWidth: 2
151IndentWrappedFunctionNames: false
152KeepEmptyLinesAtTheStartOfBlocks: false
153MacroBlockBegin: ''
154MacroBlockEnd: ''
155MaxEmptyLinesToKeep: 2
156NamespaceIndentation: None
157ObjCBlockIndentWidth: 2
158ObjCSpaceAfterProperty: true
159ObjCSpaceBeforeProtocolList: false
160PenaltyBreakBeforeFirstCallParameter: 2000
161PenaltyBreakComment: 500
162PenaltyBreakFirstLessLess: 200
163PenaltyBreakString: 100
164PenaltyExcessCharacter: 10
165PenaltyReturnTypeOnItsOwnLine: 0
166PointerAlignment: Left
167ReflowComments: false
168SortIncludes: true
169SpaceAfterCStyleCast: false
170SpaceBeforeAssignmentOperators: true
171SpaceBeforeParens: ControlStatements
172SpaceInEmptyParentheses: false
173SpacesBeforeTrailingComments: 1
174SpacesInAngles: false
175SpacesInContainerLiterals: false
176SpacesInParentheses: false
177SpacesInSquareBrackets: false
178TabWidth: 4
179UseTab: Never