diff options
author | Milan Zamazal <mzamazal@redhat.com> | 2024-06-10 20:08:49 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-11 16:26:54 +0300 |
commit | fa52898efeaf41514b65466f246432af68f8d3d8 (patch) | |
tree | 374f57f808cc34acb03ef31fff5aeec5f4093bb1 /.clang-format | |
parent | eb41f636941e13a92ddce7893d25abd747e23c45 (diff) |
clang-format: Make Qt includes matching case sensitive
Now that stable versions of all major distributions ship clang-format 12
or newer, we can use the CaseSensitive option for the Qt include
category. This fixes the problem that includes like
#include <queue>
are put near the end.
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index cac7029f..f2b44e87 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only # -# clang-format configuration file. Intended for clang-format >= 7. +# clang-format configuration file. Intended for clang-format >= 12. # # For more information, see: # @@ -75,6 +75,7 @@ IncludeCategories: Priority: 9 # Qt includes (match before C++ standard library) - Regex: '<Q([A-Za-z0-9\-_])+>' + CaseSensitive: true Priority: 9 # Headers in <> with an extension. (+system libraries) - Regex: '<([A-Za-z0-9\-_])+\.h>' |