Skip to content

Commit fdaf82f

Browse files
committed
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
1 parent 0e0b473 commit fdaf82f

File tree

8 files changed

+13
-15
lines changed

8 files changed

+13
-15
lines changed

.clang-format

-15
This file was deleted.

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../system/core/.clang-format-2

PREUPLOAD.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[Hook Scripts]
22
notice = tools/update_notice.sh
3+
4+
[Builtin Hooks]
5+
clang_format = true
6+
7+
[Builtin Hooks Options]
8+
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp

libc/kernel/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

libc/upstream-freebsd/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

libc/upstream-netbsd/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

libc/upstream-openbsd/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

libm/upstream-freebsd/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

libm/upstream-netbsd/.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

0 commit comments

Comments
 (0)