11#
2- # The clang-format (Clang 6 ) style file used by deal.II.
2+ # The clang-format (Clang 11 ) style file used by deal.II.
33#
44
55AccessModifierOffset : -2
@@ -26,8 +26,9 @@ BinPackArguments: false
2626BinPackParameters : false
2727
2828BraceWrapping :
29+ AfterCaseLabel : true
2930 AfterClass : true
30- AfterControlStatement : true
31+ AfterControlStatement : Always
3132 AfterEnum : true
3233 AfterExternBlock : true
3334 AfterFunction : true
@@ -36,6 +37,8 @@ BraceWrapping:
3637 AfterUnion : true
3738 BeforeCatch : true
3839 BeforeElse : true
40+ BeforeLambdaBody : false
41+ BeforeWhile : true
3942 IndentBraces : true
4043 SplitEmptyFunction : false
4144 SplitEmptyRecord : false
@@ -69,6 +72,8 @@ IncludeCategories:
6972 Priority : -1
7073# deal.II folders in sorted order:
7174 - Regex : " deal.II/algorithms/.*\\ .h"
75+ Priority : 100
76+ - Regex : " deal.II/arborx/.*\\ .h"
7277 Priority : 110
7378 - Regex : " deal.II/base/.*\\ .h"
7479 Priority : 120
@@ -112,6 +117,8 @@ IncludeCategories:
112117 Priority : 300
113118 - Regex : " deal.II/sundials/.*\\ .h"
114119 Priority : 310
120+ - Regex : " deal.II/trilinos/.*\\ .h"
121+ Priority : 320
115122# put boost right after deal:
116123 - Regex : " <boost.*>"
117124 Priority : 500
@@ -127,6 +134,10 @@ IncludeCategories:
127134# should not be caught here
128135 - Regex : " <[a-z_]+>"
129136 Priority : 100000
137+ # make sure that "../tests.h" appears before all other local include files
138+ # such that replacing Assert in tests also applies to the testing header files.
139+ - Regex : " \\ .\\ ./tests\\ .h"
140+ Priority : 200000
130141
131142IndentCaseLabels : true
132143IndentPPDirectives : AfterHash
0 commit comments