Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a3a21f9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Enable clang-format for frameworks/base" am: 8857e6b6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1366076

Change-Id: Ie2dab15b058d18f59ddc0cb882af8808c8d42bc2
parents 9b63f4e9 8857e6b6
Loading
Loading
Loading
Loading

.clang-format

0 → 100644
+13 −0
Original line number Diff line number Diff line
BasedOnStyle: Google

AccessModifierOffset: -4
AlignOperands: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakBeforeMultilineStrings: false
ColumnLimit: 100
CommentPragmas: NOLINT:.*
ConstructorInitializerIndentWidth: 6
ContinuationIndentWidth: 8
IndentWidth: 4
PenaltyBreakBeforeFirstCallParameter: 100000
SpacesBeforeTrailingComments: 1
+12 −0
Original line number Diff line number Diff line
[Builtin Hooks]
clang_format = true

[Builtin Hooks Options]
# Only turn on clang-format check for the following subfolders.
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
               cmds/hid/
               cmds/input/
               core/jni/
               libs/input/
               services/core/jni/

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}