spion / adbfs-rootless

Mount Android phones on Linux with adb. No root required.
Other
908 stars 73 forks source link

[style] Implement a consistent code style #22

Closed svkampen closed 5 years ago

svkampen commented 6 years ago

This commit implements a consistent code style, which is defined by the following clang-format configuration file:

BasedOnStyle: Google
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
PointerAlignment: Left
DerivePointerAlignment: false
SpacesBeforeTrailingComments: 1
BreakBeforeBraces: Allman
AlignConsecutiveAssignments: true
IndentWidth: 4

(If there are any suggestions to change any of the style options, I'm obviously willing to change them)

spion commented 6 years ago

Might be nice to include .clang-format file in PR as well as make reformat