aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-01-18 14:23:25 -0800
committerSteven Moreland <smoreland@google.com>2019-01-22 13:27:45 -0800
commit1aa839c27541e68ec8cdb3a2debcc530c64b42fd (patch)
tree71817e2444327967d5f83ee687fe7225f67bbd58 /scripts
parent63d91fad6a565c4be99ca0af6f9b8581a12354c7 (diff)
downloadbuild_soong-1aa839c27541e68ec8cdb3a2debcc530c64b42fd.tar.gz
build_soong-1aa839c27541e68ec8cdb3a2debcc530c64b42fd.tar.bz2
build_soong-1aa839c27541e68ec8cdb3a2debcc530c64b42fd.zip
Move system-clang-format to a central location.
So that system/core clang-format can be used in more places. Bug: 122835115 Test: manual Change-Id: I233a5003c4229126f37a89e90eac4a75dc5ad104
Diffstat (limited to 'scripts')
-rw-r--r--scripts/OWNERS1
-rw-r--r--scripts/system-clang-format11
-rw-r--r--scripts/system-clang-format-29
3 files changed, 21 insertions, 0 deletions
diff --git a/scripts/OWNERS b/scripts/OWNERS
new file mode 100644
index 00000000..076b3f5c
--- /dev/null
+++ b/scripts/OWNERS
@@ -0,0 +1 @@
+per-file system-clang-format,system-clang-format-2 = enh@google.com,smoreland@google.com
diff --git a/scripts/system-clang-format b/scripts/system-clang-format
new file mode 100644
index 00000000..55773a29
--- /dev/null
+++ b/scripts/system-clang-format
@@ -0,0 +1,11 @@
+BasedOnStyle: Google
+AccessModifierOffset: -2
+AllowShortFunctionsOnASingleLine: Inline
+ColumnLimit: 100
+CommentPragmas: NOLINT:.*
+DerivePointerAlignment: false
+IndentWidth: 4
+ContinuationIndentWidth: 8
+PointerAlignment: Left
+TabWidth: 4
+UseTab: Never
diff --git a/scripts/system-clang-format-2 b/scripts/system-clang-format-2
new file mode 100644
index 00000000..ede5d7e1
--- /dev/null
+++ b/scripts/system-clang-format-2
@@ -0,0 +1,9 @@
+BasedOnStyle: Google
+AllowShortFunctionsOnASingleLine: Inline
+ColumnLimit: 100
+CommentPragmas: NOLINT:.*
+DerivePointerAlignment: false
+IndentWidth: 2
+PointerAlignment: Left
+TabWidth: 2
+UseTab: Never