summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 141e1e2fdae46a00f2e09d041c32cc59e42caf2c (plain)
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
Language: Cpp
Standard: c++23
BasedOnStyle: Google

# Core Formatting
IndentWidth: 4
ColumnLimit: 100
TabWidth: 4
UseTab: Never

# Pointers and References
PointerAlignment: Left
ReferenceAlignment: Left

# Includes
SortIncludes: true

# Alignment
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true

# Control Statements
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty

# Spaces
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceAfterTemplateKeyword: true