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
2 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ IncludeCategories:
|
||||||
Priority: 3
|
Priority: 3
|
||||||
IndentCaseLabels: false
|
IndentCaseLabels: false
|
||||||
IndentWidth: 8
|
IndentWidth: 8
|
||||||
|
InsertBraces: true
|
||||||
# SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0
|
# SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0
|
||||||
SortIncludes: false
|
SortIncludes: false
|
||||||
UseTab: Always
|
UseTab: Always
|
||||||
|
|
|
@ -10,7 +10,7 @@ gitlint
|
||||||
junit2html
|
junit2html
|
||||||
|
|
||||||
# helper for developers - code formatter
|
# helper for developers - code formatter
|
||||||
clang-format>=1.13x
|
clang-format>=15.0.0
|
||||||
|
|
||||||
# Script used to build firmware images for NXP LPC MCUs.
|
# Script used to build firmware images for NXP LPC MCUs.
|
||||||
lpc_checksum
|
lpc_checksum
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue