From ec106f6cc73e2cbe63ad6c8e942c11d764c8158c Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 24 Mar 2017 11:09:55 -0700 Subject: [PATCH] Add default .clang-format Adds a default .clang-format for frameworks/native. If this style is undesirable for a given component in this repo, it can be overriden with a more local .clang-format file. Test: None necessary, only for formatting Change-Id: I0bf6bd9a15255d9a4ce3d485e841912955caa310 --- .clang-format | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..03af56d640 --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +BasedOnStyle: Google + +AccessModifierOffset: -4 +AlignOperands: false +AllowShortFunctionsOnASingleLine: Inline +AlwaysBreakBeforeMultilineStrings: false +ColumnLimit: 100 +CommentPragmas: NOLINT:.* +ConstructorInitializerIndentWidth: 6 +ContinuationIndentWidth: 8 +IndentWidth: 4 +PenaltyBreakBeforeFirstCallParameter: 100000 +SpacesBeforeTrailingComments: 1