-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
36 lines (25 loc) · 1.33 KB
/
Copy path.clang-format
File metadata and controls
36 lines (25 loc) · 1.33 KB
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
# .clang-format
# BasedOnStyle: The base style to inherit from (e.g., "Google", "LLVM", "WebKit", "Chromium").
# You can choose an existing style or configure custom options.
BasedOnStyle: Google
# AccessModifierOffset: Align access modifiers (public, private, protected) with the class name.
AccessModifierOffset: -2
# AlignConsecutiveAssignments: Align consecutive assignments vertically.
AlignConsecutiveAssignments: true
# AlignConsecutiveDeclarations: Align consecutive variable declarations vertically.
AlignConsecutiveDeclarations: true
# IndentWidth: The number of spaces for each level of indentation.
IndentWidth: 4
# TabWidth: The number of spaces to be considered as a tab.
TabWidth: 4
# UseTab: Use tabs instead of spaces for indentation (true or false).
UseTab: false
# ColumnLimit: The maximum line length (80 is common, but you can adjust it to your preference).
ColumnLimit: 80
# AllowShortIfStatementsOnASingleLine: Allow short if statements to be on a single line.
AllowShortIfStatementsOnASingleLine: false
# BreakBeforeBraces: Configure brace formatting (e.g., "Allman", "Stroustrup").
# Allman style puts opening braces on a new line, Stroustrup style puts them on the same line.
BreakBeforeBraces: Allman
# AllowShortLoopsOnASingleLine: Allow short for/while loops to be on a single line.
AllowShortLoopsOnASingleLine: false