Re: [Yade-dev] Removing trailing white space, yay or nay?

2019-10-17 Thread Anton Gladky
Hi, I propose to use the clang-format [1], which automatically formats the code according to the pre-defined rules. It has a nice support by most of IDEs and can also be used through command line. There are some pre-defined styles (LLVM, Google, Chromium, Mozilla, WebKit), and i think we just

Re: [Yade-dev] Removing trailing white space, yay or nay?

2019-10-17 Thread Janek Kozicki (yade)
I remove trailing whitespace at the end of the line, provided that I am changing this line for some *other* purpose. I prefer to avoid changing lines only for the sake of formatting, because that will eventually cause unwanted and unnecessary merge conflicts later. Also I tend to add a newline

[Yade-dev] Removing trailing white space, yay or nay?

2019-10-17 Thread Robert Caulk
Hey yade devs, Lately I’ve been letting my editor automatically remove trailing white space in the files I’m working on. The benefit to doing this can be disputed, but it seems most people agree that trailing white space is undesirable because it can create unwanted commit noise and interfere