personally i'd like to have a .clang-format and a git hook to just canonicalize. it takes a bit of getting used to, giving up the fine control over every last space and linebreak, but it's remarkably liberating once you've done it. in projects like that i just run clang-format every time i save and literally pay no attention to the layout of what i'm typing, allowing ctrl-S to think about it so i don't have to.
On Wed, Jan 23, 2019 at 12:46 AM Reverend Homer <mk.43.e...@gmail.com> wrote: > > Maybe it's worth adding .editorconfig file? Pretty much all editors support it > from the box or have the plugin. > > R.H. > > On 23/01/2019 05:23, enh via Toybox wrote: > > I accidentally added a tab in xargs.c, so as penance I'll clean up all > > the tabs. > > --- > > toys/pending/dhcp.c | 2 +- > > toys/pending/dhcp6.c | 4 ++-- > > toys/pending/ip.c | 2 +- > > toys/pending/mdev.c | 6 +++--- > > toys/pending/modprobe.c | 15 +++++++-------- > > toys/posix/xargs.c | 2 +- > > 6 files changed, 15 insertions(+), 16 deletions(-) > > > > > > _______________________________________________ > > Toybox mailing list > > Toybox@lists.landley.net > > http://lists.landley.net/listinfo.cgi/toybox-landley.net > > > _______________________________________________ > Toybox mailing list > Toybox@lists.landley.net > http://lists.landley.net/listinfo.cgi/toybox-landley.net _______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net