[libcamera-devel] [PATCH] clang-format: Bump minimum version requirements

Kieran Bingham kieran.bingham at ideasonboard.com
Thu Aug 12 10:45:01 CEST 2021


The .clang-format file uses CaseSensitive on Regex rules for Include Categories.
Without this, it would not be possible to distinguish between QT headers which
commence with a 'Q' verses system headers including <queue>.

While we have more wider support for libcamera to run and build on older
platforms, it should be safe to assume that developers who need to run
checkstyle can update their clang-format to a modern version.

clang-format-12 is supported in Ubuntu 20.04 in the updates category,
and in Debian sid. More recent versions of Ubuntu ship with
clang-format-12 or later by default, and other distributions may of
course vary further.

Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 .clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index ff60b928affc..df1421fe94a8 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:
 #
-- 
2.30.2



More information about the libcamera-devel mailing list