clang-format: Adjust short functions / if settings.
http://clang.llvm.org/docs/ClangFormatStyleOptions.html AllowShortFunctionsOnASingleLine: Empty Empty functions like "int f() {}" can be put on a single line. AllowShortIfStatementsOnASingleLine: true If true, "if (a) return;" can be put on a single line. Test: N/A Change-Id: Ia4f411a958235ab18d16972f2c9d0f55b645b4ba
This commit is contained in:
parent
594dc4f5be
commit
e65fa0a892
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
BasedOnStyle: Google
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
AllowShortIfStatementsOnASingleLine: true
|
||||
|
||||
ColumnLimit: 100
|
||||
CommentPragmas: NOLINT:.*
|
||||
|
|
Loading…
Reference in a new issue