-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
23 lines (20 loc) · 968 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
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
AlignConsecutiveDeclarations: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
AllowAllConstructorInitializersOnNextLine: false
# Use custom brace wrapping settings
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true # Place opening brace on a new line after functions
SplitEmptyFunction: false # Keep empty functions on a single line
AfterClass: true # Place opening brace on a new line after classes
AfterNamespace: true # Place opening brace on a new line after namespaces
AfterControlStatement: true # Place opening brace on a new line after control statements
SplitEmptyRecord: false # Keep empty classes/structs on a single line
# Indent preprocessor directives after the hash symbol
IndentPPDirectives: AfterHash