Skip to content

Commit

Permalink
clang-format: do not merge blocks/functions into single line
Browse files Browse the repository at this point in the history
Align clang-format a bit closer to established coding style
of the project. Similar to commit 51f9f7c
("clang-format: do not put enums in single line")'

Never merge blocks/case/functions/if/loops into a single line.

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and nashif committed Jul 15, 2022
1 parent 5f84be5 commit dddb5dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
---
BasedOnStyle: LLVM
AlignConsecutiveMacros: AcrossComments
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AttributeMacros:
- __aligned
- __deprecated
Expand Down

0 comments on commit dddb5dd

Please sign in to comment.