diff --git a/scripts/OWNERS b/scripts/OWNERS new file mode 100644 index 000000000..076b3f5c1 --- /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 000000000..55773a29f --- /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 000000000..ede5d7e18 --- /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