forked from JKSunny/Quake3e
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.clang-format
More file actions
39 lines (30 loc) · 812 Bytes
/
.clang-format
File metadata and controls
39 lines (30 loc) · 812 Bytes
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
# ClangFormat config for idTech3 engine
# Use: clang-format -i <file> or pre-commit hook
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
Language: Cpp
# Match project convention: tabs for indentation
UseTab: ForIndentation
TabWidth: 4
# Line length (common default)
ColumnLimit: 120
# Braces
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
# Indentation
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
# Spacing
SpaceAfterCStyleCast: false
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
# Align
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
# Includes
SortIncludes: true
IncludeBlocks: Regroup
# Continuation
ContinuationIndentWidth: 4