-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
41 lines (33 loc) · 1006 Bytes
/
Copy path.clang-format
File metadata and controls
41 lines (33 loc) · 1006 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
40
41
---
# svlens C++20 formatting policy.
# Derived from LLVM with project overrides (4-space indent, 120-column).
# CI runs `clang-format --dry-run` against changed lines only (not legacy code)
# so adding this config is non-breaking. Run `make format` to format the whole
# tree at once.
Language: Cpp
Standard: c++20
BasedOnStyle: LLVM
ColumnLimit: 120
IndentWidth: 4
TabWidth: 4
UseTab: Never
ContinuationIndentWidth: 4
AccessModifierOffset: -4
NamespaceIndentation: None
FixNamespaceComments: true
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
DerivePointerAlignment: false
PointerAlignment: Left
ReferenceAlignment: Left
IncludeBlocks: Preserve
SortIncludes: Never
BreakStringLiterals: false
AlwaysBreakBeforeMultilineStrings: false
ReflowComments: false
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false