Skip to content

Commit

Permalink
clang-format: single-line functions and if guards
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Nov 3, 2023
1 parent 03893ea commit 7ee1703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/.clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
BasedOnStyle: webkit
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
PointerAlignment: Right
TabWidth: 4
UseTab: ForIndentation
Expand Down
3 changes: 2 additions & 1 deletion test/.clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
BasedOnStyle: webkit
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
PointerAlignment: Right
TabWidth: 4
UseTab: ForIndentation
Expand Down

0 comments on commit 7ee1703

Please sign in to comment.