summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-03 18:44:48 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-06 17:33:45 +0100
commita8aa89352a448fe9290532ad7b1d24d7e1b5e21e (patch)
treef752c915645391735de5092dd60133e78dd71378 /.clang-format
parentb67c53dddfcf956f4d55cbdc0f4e7705f62e805b (diff)
downloadcmake-a8aa89352a448fe9290532ad7b1d24d7e1b5e21e.tar.gz
clang-format: fix erroneous handling of header <queue>
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.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 2 insertions, 0 deletions
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: '^<queue>'
+ Priority: 1
- Regex: '^(<|")cm(ext)?/'
Priority: 2
- Regex: '^(<|")windows\.h'