Skip to content

Commit 342cd68

Browse files
franzpoeschelax3l
authored andcommitted
Add .clang-format file
1 parent bce3177 commit 342cd68

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.clang-format

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
Language: Cpp
2+
3+
BasedOnStyle: LLVM
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: AlwaysBreak
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
# AlignEscapedNewlinesLeft: false
9+
AlignEscapedNewlines: Right
10+
AlignOperands: false
11+
AlignTrailingComments: false
12+
AllowAllArgumentsOnNextLine: true
13+
AllowAllConstructorInitializersOnNextLine: true
14+
AllowAllParametersOfDeclarationOnNextLine: true
15+
AllowShortBlocksOnASingleLine: false
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortFunctionsOnASingleLine: None
18+
AllowShortIfStatementsOnASingleLine: false
19+
AllowShortLambdasOnASingleLine: true
20+
AllowShortLoopsOnASingleLine: false
21+
AlwaysBreakBeforeMultilineStrings: true
22+
AlwaysBreakTemplateDeclarations: MultiLine
23+
BinPackArguments: false
24+
BinPackParameters: false
25+
26+
BreakBeforeBraces: Custom
27+
BraceWrapping:
28+
AfterClass: true
29+
AfterControlStatement: true
30+
AfterEnum: true
31+
AfterExternBlock: true
32+
AfterFunction: true
33+
AfterNamespace: true
34+
AfterStruct: true
35+
AfterUnion: true
36+
BeforeCatch: true
37+
BeforeElse: true
38+
# BeforeLambdaBody: true
39+
SplitEmptyFunction: false
40+
SplitEmptyNamespace: false
41+
SplitEmptyRecord: false
42+
43+
BreakConstructorInitializers: BeforeComma
44+
BreakInheritanceList: BeforeComma
45+
ColumnLimit: 80
46+
CompactNamespaces: false
47+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
48+
ConstructorInitializerIndentWidth: 4
49+
ContinuationIndentWidth: 4
50+
FixNamespaceComments: true
51+
IndentWidth: 4
52+
NamespaceIndentation: Inner
53+
PointerAlignment: Right
54+
SortUsingDeclarations: false
55+
SpaceAfterCStyleCast: false
56+
SpaceAfterTemplateKeyword: true
57+
SpaceBeforeAssignmentOperators: true
58+
SpaceBeforeParens: ControlStatements
59+
SpaceInEmptyParentheses: false
60+
SpacesInAngles: false
61+
SpacesInContainerLiterals: false
62+
SpacesInCStyleCastParentheses: false
63+
SpacesInParentheses: false
64+
SpacesInSquareBrackets: false
65+
Standard: Auto
66+
StatementMacros: ["OPENPMD_private", "OPENPMD_protected"]

0 commit comments

Comments
 (0)