We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f372af commit e895442Copy full SHA for e895442
1 file changed
.clang-format
@@ -4,5 +4,24 @@ AlignAfterOpenBracket: Align
4
AlignConsecutiveDeclarations: 'false'
5
BreakBeforeBraces: Allman
6
NamespaceIndentation: All
7
+IncludeBlocks: Regroup
8
+# First regex to match classifies the header into a group.
9
+# Group are ordered in the source code by increasing priority.
10
+IncludeCategories:
11
+ # Standard headers
12
+ - Regex: <[^\.]+>
13
+ Priority: 4
14
+ # Third party dependencies (prefer angle bracket over quotes)
15
+ - Regex: <.+\..+>
16
+ Priority: 3
17
+ # xsimd absolute headers (e.g. in tests)
18
+ - Regex: '["<]xsimd/.+[">]'
19
+ Priority: 2
20
+ # Relative header from project
21
+ - Regex: '"\.+.*"'
22
+ Priority: 1
23
+ # Not quoted header (anything else, avoid)
24
+ - Regex: '".*"'
25
+ Priority: 0
26
27
...
0 commit comments