From fa52898efeaf41514b65466f246432af68f8d3d8 Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Mon, 10 Jun 2024 20:08:49 +0200 Subject: 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 are put near the end. Signed-off-by: Milan Zamazal Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- .clang-format | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.clang-format') 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: '' + CaseSensitive: true Priority: 9 # Headers in <> with an extension. (+system libraries) - Regex: '<([A-Za-z0-9\-_])+\.h>' -- cgit v1.2.1