-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
.clang-format
46 lines (38 loc) · 1.06 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Reference: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/Llvm/bin
# https://clang-format-configurator.site/
# default values:
# https://github.com/llvm/llvm-project/blob/main/clang/lib/Format/Format.cpp
---
Language: Cpp
BasedOnStyle: Microsoft
# BreakBeforeBraces: Allman
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterUnion: true
BeforeWhile: true
# BreakBeforeBinaryOperators: All
ColumnLimit: 130
PointerAlignment: Left
UseTab: Always
BreakConstructorInitializers: BeforeComma
InsertNewlineAtEOF: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(box2d\/)'
Priority: 2
- Regex: '^<.*'
Priority: 3
- Regex: '^".*'
Priority: 1
IndentExternBlock: NoIndent
IndentCaseLabels: true
#IndentPPDirectives: None
IndentAccessModifiers: false
AccessModifierOffset: -4
# AlignArrayOfStructures: Left
# AlignAfterOpenBracket: BlockIndent
SpacesInParens: Custom
SpacesInParensOptions:
Other: true