[PATCH 1/2] clang-format: Make Qt includes matching case sensitive

Milan Zamazal mzamazal at redhat.com
Mon Jun 10 20:08:49 CEST 2024


This fixes the problem that includes like

  #include <queue>

are put near the end.

Signed-off-by: Milan Zamazal <mzamazal at redhat.com>
---
 .clang-format | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.clang-format b/.clang-format
index cac7029f..b48d4e1e 100644
--- a/.clang-format
+++ b/.clang-format
@@ -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>'
-- 
2.44.1



More information about the libcamera-devel mailing list