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:
parent
0e0b473a4c
commit
fdaf82f96b
8 changed files with 13 additions and 15 deletions
|
@ -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
1
.clang-format
Symbolic link
|
@ -0,0 +1 @@
|
|||
../system/core/.clang-format-2
|
|
@ -1,2 +1,8 @@
|
|||
[Hook Scripts]
|
||||
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
|
||||
|
|
1
libc/kernel/.clang-format
Normal file
1
libc/kernel/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
1
libc/upstream-freebsd/.clang-format
Normal file
1
libc/upstream-freebsd/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
1
libc/upstream-netbsd/.clang-format
Normal file
1
libc/upstream-netbsd/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
1
libc/upstream-openbsd/.clang-format
Normal file
1
libc/upstream-openbsd/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
1
libm/upstream-freebsd/.clang-format
Normal file
1
libm/upstream-freebsd/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
1
libm/upstream-netbsd/.clang-format
Normal file
1
libm/upstream-netbsd/.clang-format
Normal file
|
@ -0,0 +1 @@
|
|||
DisableFormat: true
|
Loading…
Reference in a new issue