Skip to content

Commit 9c95b2e

Browse files
committed
clang format file
1 parent 56cfbb2 commit 9c95b2e

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.clang-format

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
IndentWidth: 4
2+
Language: Cpp
3+
UseTab: Never
4+
ColumnLimit: 140
5+
PointerAlignment: Left
6+
SpaceAfterCStyleCast: false
7+
Cpp11BracedListStyle: false
8+
SpaceBeforeCpp11BracedList: false
9+
10+
# Cases inside switches are indented one level
11+
IndentCaseLabels: true
12+
13+
AlignAfterOpenBracket: AlwaysBreak
14+
15+
AllowShortBlocksOnASingleLine: false
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortEnumsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: false
19+
AllowShortIfStatementsOnASingleLine: false
20+
AllowShortLambdasOnASingleLine: false
21+
AllowShortLoopsOnASingleLine: false
22+
23+
# Otherwise it would align escaped newlines to the column limit
24+
AlignEscapedNewlines: Left
25+
26+
AlignTrailingComments: true
27+
SortIncludes: true
28+
29+
BreakBeforeBraces: Custom
30+
BraceWrapping:
31+
AfterControlStatement: Never
32+
AfterFunction: false
33+
AfterNamespace: false
34+
AfterStruct: false
35+
AfterUnion: false
36+
AfterExternBlock: false
37+
BeforeElse: true
38+
39+
# Adds a comment at the end of the namespace with its name
40+
FixNamespaceComments: true
41+
# Indent namespace's content
42+
NamespaceIndentation: All
43+
44+
# Aligns preprocessor directives
45+
IndentPPDirectives: AfterHash
46+
47+
# No space between template and <
48+
SpaceAfterTemplateKeyword: false
49+
# Newline after template
50+
AlwaysBreakTemplateDeclarations: Yes
51+
52+
LambdaBodyIndentation: Signature
53+
54+
TypenameMacros: ["PTR"]

0 commit comments

Comments
 (0)