Add .clang-format style file.
The file is forked from bionic project. It's mostly in Google style, with some tweaks (e.g. 100 column limit). New CLs can be formatted with `git clang-format --style=file`. Test: N/A Change-Id: I6fbd0ab851c03aa6de9987777c7da8cdca8964ed
This commit is contained in:
parent
d0daf7f7df
commit
74bda5f65b
1 changed files with 14 additions and 0 deletions
14
.clang-format
Normal file
14
.clang-format
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
BasedOnStyle: Google
|
||||||
|
AllowShortBlocksOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: false
|
||||||
|
|
||||||
|
ColumnLimit: 100
|
||||||
|
CommentPragmas: NOLINT:.*
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
IndentWidth: 2
|
||||||
|
PointerAlignment: Left
|
||||||
|
TabWidth: 2
|
||||||
|
UseTab: Never
|
||||||
|
PenaltyExcessCharacter: 32
|
||||||
|
|
||||||
|
Cpp11BracedListStyle: false
|
Loading…
Reference in a new issue