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:
parent
93b98fc2de
commit
42f746c8d0
|
@ -77,6 +77,7 @@ IncludeCategories:
|
|||
Priority: 3
|
||||
IndentCaseLabels: false
|
||||
IndentWidth: 8
|
||||
InsertBraces: true
|
||||
# SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0
|
||||
SortIncludes: false
|
||||
UseTab: Always
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue