scripts: requirements: extras: Suitable clang-format version

Even when BreakBeforeBraces is set to Linux, implying BraceWrapping for
AfterEnum to be true, clang-format version 12 puts the opening brace of
an enum declaration on a new line. [1]

One possible workaround would be to change AllowShortEnumsOnASingleLine
from false to true, but that would yield a different kind of unwanted
formatting.

clang-format version 13 and newer have this issue fixed, therefore
bumping the minimal version.

[1] https://github.com/llvm/llvm-project/issues/48983

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
Reto Schneider 2022-07-23 01:28:47 +02:00 committed by Carles Cufí
commit 80270727d0

View file

@ -10,7 +10,7 @@ gitlint
junit2html
# helper for developers - code formatter
clang-format>=1.12x
clang-format>=1.13x
# Script used to build firmware images for NXP LPC MCUs.
lpc_checksum