Skip to content

Commit 5062135

Browse files
committed
Pulling .clang-format change from @henryiii's 9057962
1 parent 168e21c commit 5062135

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.clang-format

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ BinPackParameters: false
99
BreakBeforeBinaryOperators: All
1010
BreakConstructorInitializers: BeforeColon
1111
ColumnLimit: 99
12+
IncludeBlocks: Regroup
1213
IndentCaseLabels: true
1314
IndentPPDirectives: AfterHash
1415
IndentWidth: 4
@@ -17,4 +18,19 @@ SpaceAfterCStyleCast: true
1718
Standard: Cpp11
1819
StatementMacros: ['PyObject_HEAD']
1920
TabWidth: 4
21+
IncludeCategories:
22+
- Regex: '<pybind11/.*'
23+
Priority: -1
24+
- Regex: 'pybind11.h"$'
25+
Priority: 1
26+
- Regex: '^".*/?detail/'
27+
Priority: 1
28+
SortPriority: 2
29+
- Regex: '^"'
30+
Priority: 1
31+
SortPriority: 3
32+
- Regex: '<[[:alnum:]._]+>'
33+
Priority: 4
34+
- Regex: '.*'
35+
Priority: 5
2036
...

0 commit comments

Comments
 (0)