forked from syscl/Sinetek-rtsx
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.clang-format
24 lines (22 loc) · 830 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
BasedOnStyle: LLVM
AlignConsecutiveMacros: true
# Commented out because does not work well with PointerAlignment:Right
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: DontAlign
AllowShortFunctionsOnASingleLine: Inline
AccessModifierOffset: -8
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
ColumnLimit: 120
ContinuationIndentWidth: 8 # Used sometimes when lines are too long
IndentWidth: 8
# int *p;
DerivePointerAlignment: false
PointerAlignment: Right
# BracedList (and struct initializators!)
Cpp11BracedListStyle: false # true: Struct s = {0}; | false: Struct s = { 0 };
SpaceBeforeCpp11BracedList: false # true: int a {0}; | false: int a{0};
TabWidth: 8
# I prefer ForIndentation, but use ForContinuationAndIndentation for consistency with Xcode
UseTab: ForContinuationAndIndentation