Skip to content

Commit e766fc7

Browse files
committed
.clang-format - update format rules
1 parent c2bd6aa commit e766fc7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.clang-format

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ AlwaysBreakBeforeMultilineStrings: true
66
AlignAfterOpenBracket: AlwaysBreak
77
AllowAllArgumentsOnNextLine: false
88
AllowAllParametersOfDeclarationOnNextLine: false
9+
AllowShortIfStatementsOnASingleLine: Never
910
AllowShortFunctionsOnASingleLine: Inline
1011
AlwaysBreakTemplateDeclarations: Yes
1112
BinPackArguments: false
@@ -23,6 +24,16 @@ SpaceAfterTemplateKeyword: false
2324
SpaceInEmptyBlock: false
2425
SpacesInContainerLiterals: false
2526
PointerAlignment: Left
26-
UseTab: false
27-
IndentWidth: 4
28-
...
27+
TabWidth: '4'
28+
UseTab: ForContinuationAndIndentation
29+
30+
SortIncludes: true
31+
IncludeBlocks: Regroup
32+
IncludeCategories:
33+
- Regex: '^"(.*)"$'
34+
Priority: 1
35+
- Regex: '^<[^>]*\.(h|hpp)>$'
36+
Priority: 3
37+
- Regex: '^<.*>$'
38+
Priority: 2
39+
...

0 commit comments

Comments
 (0)