From 1aa839c27541e68ec8cdb3a2debcc530c64b42fd Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 18 Jan 2019 14:23:25 -0800 Subject: 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 --- scripts/OWNERS | 1 + scripts/system-clang-format | 11 +++++++++++ scripts/system-clang-format-2 | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 scripts/OWNERS create mode 100644 scripts/system-clang-format create mode 100644 scripts/system-clang-format-2 (limited to 'scripts') 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 -- cgit v1.2.3