From ec22a260b24c1c45bbe7e3862ed26e611d4f93cf Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 24 Oct 2020 14:34:44 +0100 Subject: [PATCH] Fix Windows header sorting in clangformat. --- .clang-format | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 8be5aac..b33cb50 100644 --- a/.clang-format +++ b/.clang-format @@ -57,15 +57,22 @@ ForEachMacros: - Q_FOREACH - BOOST_FOREACH IncludeBlocks: Regroup -IncludeCategories: +IncludeCategories: + - Regex: '^()' + Priority: -3 + SortPriority: -4 - Regex: '^()' Priority: -3 - - Regex: '^("(win32|windows))' - Priority: -2 + SortPriority: -3 - Regex: '^(<.*)' - Priority: -1 + Priority: -2 + SortPriority: -2 + - Regex: '^("(win32|windows))' + Priority: 1 + SortPriority: -1 - Regex: '.*' Priority: 1 + SortPriority: 1 IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: true IndentPPDirectives: None