clang-format: Enable InsertBraces option

Zephyr's coding guidelines require braces on every code block body.
Enable InsertBraces option so clang-format automatically adds these
braces.

Signed-off-by: Keith Short <keithshort@google.com>
This commit is contained in:
Keith Short 2022-12-20 09:16:19 -07:00 committed by Carles Cufí
parent 93b98fc2de
commit 42f746c8d0
2 changed files with 2 additions and 1 deletions

View file

@ -77,6 +77,7 @@ IncludeCategories:
Priority: 3
IndentCaseLabels: false
IndentWidth: 8
InsertBraces: true
# SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0
SortIncludes: false
UseTab: Always

View file

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