forked from xann16/simple-rans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
31 lines (30 loc) · 967 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Language: Cpp
Standard: Cpp11
BasedOnStyle: LLVM
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: true
BreakConstructorInitializers: AfterColon
BreakBeforeBraces: Allman
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 3
NamespaceIndentation: All
SpaceAfterCStyleCast: true
SpacesBeforeTrailingComments: 2
SpacesInAngles: true
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: true
SpacesInParentheses: true
SpacesInSquareBrackets: true
TabWidth: 2
#available since clang-7.0
#clang7 #BreakInheritanceList: AfterColon
#clang7 #SpaceBeforeCpp11BracedList: false
#clang7 #SpaceBeforeCtorInitializerColon: true
#clang7 #SpaceBeforeInheritanceColon: true
#clang7 #SpaceBeforeRangeBasedForLoopColon: true