diff --git a/.clang-format b/.clang-format index 26b9a5bf4ce..f215c28acf5 100644 --- a/.clang-format +++ b/.clang-format @@ -71,8 +71,30 @@ ForEachMacros: - foreach - Q_FOREACH - BOOST_FOREACH -IncludeBlocks: Preserve -IncludeIsMainRegex: '([-_](test|unittest))?$' +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^"' # quoted includes + Priority: 1 + - Regex: '^<(benchmarks|tests)/' # benchmark includes + Priority: 2 + - Regex: '^