2020-08-07 00:55:17 +08:00
|
|
|
---
|
|
|
|
Language: Cpp
|
2021-11-19 16:58:26 +08:00
|
|
|
BasedOnStyle: Google
|
|
|
|
ColumnLimit: 0
|
|
|
|
IndentWidth: 4
|
2020-08-07 00:55:17 +08:00
|
|
|
AccessModifierOffset: -2
|
2021-11-26 13:29:23 +08:00
|
|
|
NamespaceIndentation: All
|
2022-06-01 09:45:41 +08:00
|
|
|
AlignOperands: AlignAfterOperator
|
2021-11-19 16:58:26 +08:00
|
|
|
AllowShortLoopsOnASingleLine: true
|
2020-08-07 00:55:17 +08:00
|
|
|
AllowShortBlocksOnASingleLine: true
|
|
|
|
AllowShortFunctionsOnASingleLine: Empty
|
2021-11-19 16:58:26 +08:00
|
|
|
AllowShortCaseLabelsOnASingleLine: true
|
2022-06-01 09:45:41 +08:00
|
|
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
2021-11-26 13:29:23 +08:00
|
|
|
EmptyLineBeforeAccessModifier: LogicalBlock
|
2022-05-20 09:23:27 +08:00
|
|
|
SeparateDefinitionBlocks: Always
|
2021-11-19 16:58:26 +08:00
|
|
|
PointerAlignment: Right
|
2022-06-01 09:45:41 +08:00
|
|
|
BinPackArguments: false
|
|
|
|
BinPackParameters: false
|
2022-06-19 21:09:25 +08:00
|
|
|
BreakBeforeBinaryOperators: All
|
2022-06-09 09:20:31 +08:00
|
|
|
PackConstructorInitializers: NextLine
|
2022-06-01 09:45:41 +08:00
|
|
|
IncludeCategories:
|
2022-10-16 08:04:09 +08:00
|
|
|
- Regex: 'testlib\.h'
|
|
|
|
Priority: 1
|
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
2022-06-01 09:45:41 +08:00
|
|
|
- Regex: '^<(iostream|cstdio)>'
|
2022-08-23 19:57:30 +08:00
|
|
|
Priority: 2
|
2022-06-01 09:45:41 +08:00
|
|
|
SortPriority: 1
|
|
|
|
CaseSensitive: false
|
|
|
|
- Regex: '^<.*'
|
2022-08-23 19:57:30 +08:00
|
|
|
Priority: 2
|
2022-06-01 09:45:41 +08:00
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
|
|
|
- Regex: '.*'
|
2022-08-23 19:57:30 +08:00
|
|
|
Priority: 3
|
2022-06-01 09:45:41 +08:00
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
|
|
|
# InsertBraces: true ## clang-format 15
|