From a8aa89352a448fe9290532ad7b1d24d7e1b5e21e Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Fri, 3 Jan 2020 18:44:48 +0100 Subject: clang-format: fix erroneous handling of header The rule Regex: '^<' was not applied to this header because a more specific one applies: Regex: '^(<|")Qt?[A-Z]' used for Qt headers (rules are not case-sensitive). So adding a specific rule for this header before the Qt rule is required. --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index a7f049aa74..4bfce44621 100644 --- a/.clang-format +++ b/.clang-format @@ -22,6 +22,8 @@ IncludeBlocks: Regroup IncludeCategories: - Regex: '^[<"]cmConfigure\.h' Priority: -1 + - Regex: '^' + Priority: 1 - Regex: '^(<|")cm(ext)?/' Priority: 2 - Regex: '^(<|")windows\.h' -- cgit v1.2.1