mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
185fe49f29
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories' headers are regrouped by categories: 1. "cmConfigure.h" which must be first 2. header matching current implementation file 3. standard language headers 4. CMake replacement ones 5. external headers (i.e. #include directive with '<' and '>') 6. Qt headers 7. cmsys/* headers 8. cm_* headers 9. CMake headers (i.e. starting with 'cm[A-Z]') 10. all other headers Fixes: #19674
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
---
|
|
# This configuration requires clang-format version 6.0 exactly.
|
|
BasedOnStyle: Mozilla
|
|
AlignOperands: false
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
AlwaysBreakAfterReturnType: None
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BreakBeforeBraces: Custom
|
|
ColumnLimit: 79
|
|
IndentPPDirectives: AfterHash
|
|
SortUsingDeclarations: false
|
|
SpaceAfterTemplateKeyword: true
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^[<"]cmConfigure\.h'
|
|
Priority: -1
|
|
- Regex: '^(<|")cm/'
|
|
Priority: 2
|
|
- Regex: '^(<|")windows\.h'
|
|
Priority: 3
|
|
- Regex: '^<sys/'
|
|
Priority: 5
|
|
- Regex: '^(<|")Qt?[A-Z]'
|
|
Priority: 6
|
|
- Regex: '^(<|")cmsys/'
|
|
Priority: 7
|
|
- Regex: '^(<|")cm_'
|
|
Priority: 8
|
|
- Regex: '^(<|")cm[A-Z][^.]+\.h'
|
|
Priority: 9
|
|
- Regex: '^<[^.]+\.h'
|
|
Priority: 4
|
|
- Regex: '^<'
|
|
Priority: 1
|
|
- Regex: '.*'
|
|
Priority: 10
|
|
...
|