0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 06:38:48 +00:00
OI-codes/.clang-format

35 lines
888 B
Plaintext
Raw Normal View History

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