summaryrefslogtreecommitdiff
path: root/.clang-format
blob: e5d1971fe40704e97ae17268de5d3c49b6310d47 (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
---
Language: Cpp
Standard: c++20
BasedOnStyle: Google
AccessModifierOffset: -2
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
  BeforeElse: true
  IndentBraces: false
  SplitEmptyFunction: true
  SplitEmptyNamespace: true
  SplitEmptyRecord: true
BreakBeforeBraces: Custom
ColumnLimit: 80
DerivePointerAlignment: false
IncludeCategories:
  # The base style already correctly handles system includes
  # C-style third-party includes
  - Regex: '^<.*\.(h|hpp)>'
    Priority: 10
  # General external and project includes
  - Regex: '^".*"'
    Priority: 20
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
PenaltyBreakString: 100
...