cmake/.clang-format

52 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-07-09 11:21:54 +02:00
---
2023-05-23 16:38:00 +02:00
# This configuration requires clang-format version 15 exactly.
2016-07-09 11:21:54 +02:00
BasedOnStyle: Mozilla
AlignOperands: false
2018-08-09 18:06:22 +02:00
AllowShortFunctionsOnASingleLine: InlineOnly
2016-07-09 11:21:54 +02:00
AlwaysBreakAfterDefinitionReturnType: None
2018-08-09 18:06:22 +02:00
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterEnum: true
AfterFunction: true
AfterStruct: true
AfterUnion: true
BreakBeforeBraces: Custom
2016-07-09 11:21:54 +02:00
ColumnLimit: 79
2018-08-09 18:06:22 +02:00
IndentPPDirectives: AfterHash
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: true
2020-02-01 23:06:01 +01:00
IncludeBlocks: Regroup
IncludeCategories:
2021-09-14 00:13:48 +02:00
- Regex: '^[<"]cmSTL\.hxx'
Priority: -2
2020-02-01 23:06:01 +01:00
- Regex: '^[<"]cmConfigure\.h'
Priority: -1
2020-08-30 11:54:41 +02:00
- Regex: '^<queue>'
Priority: 1
- Regex: '^(<|")cm(ext)?/'
2020-02-01 23:06:01 +01:00
Priority: 2
- Regex: '^(<|")windows\.h'
Priority: 3
- Regex: '^<sys/'
Priority: 5
- Regex: '^(<|")Qt?[A-Z]'
Priority: 6
2020-08-30 11:54:41 +02:00
- Regex: '^<cmtp/'
2020-02-01 23:06:01 +01:00
Priority: 7
2020-08-30 11:54:41 +02:00
- Regex: '^(<|")cmsys/'
2020-02-01 23:06:01 +01:00
Priority: 8
2020-08-30 11:54:41 +02:00
- Regex: '^(<|")cm_'
2020-02-01 23:06:01 +01:00
Priority: 9
2020-08-30 11:54:41 +02:00
- Regex: '^(<|")cm[A-Z][^.]+\.h'
Priority: 10
2020-02-01 23:06:01 +01:00
- Regex: '^<[^.]+\.h'
Priority: 4
- Regex: '^<'
Priority: 1
- Regex: '.*'
2020-08-30 11:54:41 +02:00
Priority: 11
2016-07-09 11:21:54 +02:00
...