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

David Plowman david.plowman at raspberrypi.com
Thu Aug 12 11:01:26 CEST 2021


Hi Kieran

On Thu, 12 Aug 2021 at 09:45, Kieran Bingham
<kieran.bingham at ideasonboard.com> wrote:
>
> 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.

Do you know the magic runes to do this? The Pi repositories are stuck
on version 9 currently, I believe.

Thanks!
David

>
> 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