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

Commit 59aea452 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit"

parents dda9cbb3 1aeb8d21
Loading
Loading
Loading
Loading

.clang-format

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

AccessModifierOffset: -2
ColumnLimit: 100
CommentPragmas: NOLINT:.*
DerivePointerAlignment: false
IndentWidth: 4
PointerAlignment: Left
TabWidth: 4
UseTab: Never
PenaltyExcessCharacter: 32

PREUPLOAD.cfg

0 → 100644
+5 −0
Original line number Diff line number Diff line
[Builtin Hooks]
clang_format = true

[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp