Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 3b22ab8

Browse files
committed
Clang-format configration
To comment/inprove Signed-off-by: Thomas Cahuzac <[email protected]>
1 parent 360a6be commit 3b22ab8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.clang-format

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: Align
4+
AllowShortBlocksOnASingleLine: 'false'
5+
AllowShortCaseLabelsOnASingleLine: 'false'
6+
AllowShortFunctionsOnASingleLine: 'All'
7+
AllowShortIfStatementsOnASingleLine: 'false'
8+
AllowShortLoopsOnASingleLine: 'false'
9+
BinPackParameters: 'false'
10+
BreakBeforeBraces: 'Custom'
11+
BraceWrapping: {
12+
AfterClass: 'true'
13+
AfterControlStatement: 'false'
14+
AfterEnum : 'true'
15+
AfterFunction : 'true'
16+
AfterNamespace : 'true'
17+
AfterStruct : 'true'
18+
AfterUnion : 'true'
19+
BeforeCatch : 'false'
20+
BeforeElse : 'false'
21+
IndentBraces : 'false'
22+
}
23+
ColumnLimit: '100'
24+
IndentWidth: '4'
25+
Language: Cpp
26+
NamespaceIndentation: None
27+
PointerAlignment: Right
28+
29+
PenaltyReturnTypeOnItsOwnLine: 120
30+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, SCENARIO, SCENARIO_METHOD, SCENARIO,
31+
SCENARIO_METHOD, GIVEN, WHEN, AND_WHEN, THEN, AND_THEN, TEST_CASE, TEST_CASE_METHOD,
32+
METHOD_AS_TEST_CASE, SECTION ]
33+
SpaceBeforeParens: Never
34+
35+
...

0 commit comments

Comments
 (0)