Skip to content

Commit 5534ea8

Browse files
authored
Merge pull request #10 from cschreib/clang-format
Add clang-format style and apply it
2 parents 5c65fb4 + 4e4535e commit 5534ea8

13 files changed

+1850
-1281
lines changed

.clang-format

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
BasedOnStyle: LLVM
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: AlwaysBreak
5+
AlignConsecutiveAssignments: 'true'
6+
AlignConsecutiveDeclarations: 'true'
7+
AlignEscapedNewlines: Right
8+
AlignOperands: 'true'
9+
AlignTrailingComments: 'false'
10+
AllowAllArgumentsOnNextLine: 'true'
11+
AllowAllConstructorInitializersOnNextLine: 'true'
12+
AllowAllParametersOfDeclarationOnNextLine: 'true'
13+
AllowShortBlocksOnASingleLine: 'false'
14+
AllowShortCaseLabelsOnASingleLine: 'true'
15+
AllowShortFunctionsOnASingleLine: Empty
16+
AllowShortIfStatementsOnASingleLine: Never
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortLoopsOnASingleLine: 'false'
19+
AlwaysBreakAfterReturnType: None
20+
AlwaysBreakBeforeMultilineStrings: 'false'
21+
AlwaysBreakTemplateDeclarations: 'Yes'
22+
BinPackArguments: 'true'
23+
BinPackParameters: 'false'
24+
BreakBeforeBinaryOperators: None
25+
BreakBeforeBraces: Attach
26+
BreakBeforeTernaryOperators: 'true'
27+
BreakConstructorInitializers: AfterColon
28+
BreakInheritanceList: AfterColon
29+
BreakStringLiterals: 'true'
30+
ColumnLimit: '100'
31+
CompactNamespaces: 'true'
32+
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
33+
Cpp11BracedListStyle: 'true'
34+
DerivePointerAlignment: 'false'
35+
DisableFormat: 'false'
36+
FixNamespaceComments: 'true'
37+
IncludeBlocks: Regroup
38+
IndentPPDirectives: AfterHash
39+
IndentWidth: '4'
40+
IndentWrappedFunctionNames: 'false'
41+
KeepEmptyLinesAtTheStartOfBlocks: 'true'
42+
Language: Cpp
43+
MaxEmptyLinesToKeep: '1'
44+
PointerAlignment: Left
45+
ReflowComments: 'true'
46+
CommentPragmas: '(\\param |\\returns |\\warning |\\ingroup |\\author |\\date |\\related |\\relates |\\relatesalso |\\deprecated |\\image |\\return |\\brief |\\attention |\\copydoc |\\addtogroup |\\todo |\\tparam |\\see |\\note |\\skip |\\skipline |\\until |\\line |\\dontinclude |\\include|@function|@treturn|@tparam|@classmod|@module|@see)'
47+
SortIncludes: 'true'
48+
SortUsingDeclarations: 'true'
49+
SpaceAfterCStyleCast: 'false'
50+
SpaceAfterLogicalNot: 'false'
51+
SpaceAfterTemplateKeyword: 'false'
52+
SpaceBeforeAssignmentOperators: 'true'
53+
SpaceBeforeCpp11BracedList: 'false'
54+
SpaceBeforeCtorInitializerColon: 'true'
55+
SpaceBeforeInheritanceColon: 'true'
56+
SpaceBeforeParens: ControlStatements
57+
SpaceBeforeRangeBasedForLoopColon: 'true'
58+
SpaceInEmptyParentheses: 'false'
59+
SpacesBeforeTrailingComments: '1'
60+
SpacesInAngles: 'false'
61+
SpacesInCStyleCastParentheses: 'false'
62+
SpacesInParentheses: 'false'
63+
SpacesInSquareBrackets: 'false'
64+
Standard: Cpp11
65+
TabWidth: '4'
66+
UseTab: Never
67+
68+
...

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/
22
build_clang/
33
doc/html/
4+
oup.sublime-workspace

0 commit comments

Comments
 (0)