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