clang-format: Use IncludeBlocks::Regroup

This commit is contained in:
Gaël Bonithon
2024-05-28 18:56:08 +02:00
parent 104c52c6de
commit 293230ffa7
3 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,21 @@ BreakBeforeBraces: Allman
ColumnLimit: 0
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '"config\.h"'
Priority: -1
CaseSensitive: true
- Regex: '"[^/]*"'
Priority: 0
SortPriority: 1
CaseSensitive: true
- Regex: '".*"'
Priority: 2
CaseSensitive: true
- Regex: '<.*>'
Priority: 3
CaseSensitive: true
IndentCaseLabels: true
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false