Skip to content

Commit d6e8c18

Browse files
committed
ClangFormat syntax tweaks
For better alignment with project style - #include <> before #include "" - Break "BeforeLambdaBody", newline before {
1 parent 69d2246 commit d6e8c18

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

contrib/clang-format.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
AccessModifierOffset: '-4'
3-
AlignAfterOpenBracket: DontAlign
3+
AlignAfterOpenBracket: AlwaysBreak
44
AlignConsecutiveMacros: 'true'
55
AlignConsecutiveAssignments: 'false'
66
AlignConsecutiveDeclarations: 'false'
@@ -32,6 +32,7 @@ BraceWrapping:
3232
AfterExternBlock: true
3333
BeforeCatch: true
3434
BeforeElse: true
35+
BeforeLambdaBody: true
3536
IndentBraces: false
3637
SplitEmptyFunction: true
3738
SplitEmptyRecord: true
@@ -49,6 +50,11 @@ Cpp11BracedListStyle: 'false'
4950
DerivePointerAlignment: 'false'
5051
FixNamespaceComments: 'true'
5152
IncludeBlocks: Regroup
53+
IncludeCategories:
54+
- Regex: '^<.*'
55+
Priority: 1
56+
- Regex: '^".*'
57+
Priority: 2
5258
IndentCaseLabels: 'true'
5359
IndentPPDirectives: None
5460
IndentWidth: '4'
@@ -59,7 +65,6 @@ MaxEmptyLinesToKeep: '2'
5965
NamespaceIndentation: None
6066
PointerAlignment: Left
6167
ReflowComments: 'true'
62-
SortIncludes: 'true'
6368
SortUsingDeclarations: 'true'
6469
SpaceAfterCStyleCast: 'false'
6570
SpaceAfterLogicalNot: 'false'

0 commit comments

Comments
 (0)