Link .clang-format file to system/core one.

Use the .clang-format-2 found in system/core instead of this which is
not actually being used.

Also, enable clang-format running by default.

All upstream directories are marked as ignoring formatting so that
their source files are not modified.

Test: NA
Change-Id: Icee6030f373fa5f072df162f97e6f34320e3d89a
This commit is contained in:
Christopher Ferris 2020-01-29 10:23:08 -08:00
parent 0e0b473a4c
commit fdaf82f96b
8 changed files with 13 additions and 15 deletions

View file

@ -1,15 +0,0 @@
BasedOnStyle: Google
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
ColumnLimit: 100
CommentPragmas: NOLINT:.*
DerivePointerAlignment: false
IndentWidth: 2
PointerAlignment: Left
TabWidth: 2
UseTab: Never
PenaltyExcessCharacter: 32
Cpp11BracedListStyle: false
IncludeBlocks: Preserve

1
.clang-format Symbolic link
View file

@ -0,0 +1 @@
../system/core/.clang-format-2

View file

@ -1,2 +1,8 @@
[Hook Scripts] [Hook Scripts]
notice = tools/update_notice.sh notice = tools/update_notice.sh
[Builtin Hooks]
clang_format = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp

View file

@ -0,0 +1 @@
DisableFormat: true

View file

@ -0,0 +1 @@
DisableFormat: true

View file

@ -0,0 +1 @@
DisableFormat: true

View file

@ -0,0 +1 @@
DisableFormat: true

View file

@ -0,0 +1 @@
DisableFormat: true

View file

@ -0,0 +1 @@
DisableFormat: true