diff options
author | Christopher Ferris <cferris@google.com> | 2017-03-28 12:31:37 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-03-28 12:31:37 -0700 |
commit | a11c814d3da58735792e0651457410e3d913852c (patch) | |
tree | ddec70be023aaf0de180ea04b03b4227d8636900 /.clang-format-4 | |
parent | 6105dbd01bfd88d64d5c5451f6570f146c8b91b8 (diff) | |
download | system_core-a11c814d3da58735792e0651457410e3d913852c.tar.gz system_core-a11c814d3da58735792e0651457410e3d913852c.tar.bz2 system_core-a11c814d3da58735792e0651457410e3d913852c.zip |
Only allow short functions in class definitions.
The previous rules would force short functions to be on a single line.
This change only allows single function lines in class definitions.
Test: Ran on a CL and verified single line functions only allowed in
Test: class defintions.
Change-Id: I5422543fdbb39da842bbd799c19fe2c443ff483c
Diffstat (limited to '.clang-format-4')
-rw-r--r-- | .clang-format-4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format-4 b/.clang-format-4 index 1497447fe..ae4a45135 100644 --- a/.clang-format-4 +++ b/.clang-format-4 @@ -1,5 +1,6 @@ BasedOnStyle: Google AccessModifierOffset: -2 +AllowShortFunctionsOnASingleLine: Inline ColumnLimit: 100 CommentPragmas: NOLINT:.* DerivePointerAlignment: false |