Hi,
clang-format has finally gotten to the point where we can get it to format our
code similar, but not quite identical, to what we have today. Doing all
formatting programmatically has several benefits:
It’s no longer up to subjective or personal preferences, we’ll learn to live
and love the clang-format coding style.
It can be automated.
It can also be used as a tool for people who want to work / see code in a
different style, but commit in our standard style.
I have updated the .clang-format files that is in our Git master, we might need
to do a few more tweaks, but it’s getting pretty close. It does require a very
recent version of clang-format, the one I used is
clang-format version 3.6.0 (tags/google/testing/2015-01-13)
This I installed on my OS X laptop, using HomeBrew.
Finally, Phil Sorber (the PM for the 5.3 LTS) has requested that we do this
before he branches for 5.3. So, assuming we agree to do this, we have to make a
decision asap. If you have objections to this proposal, please discuss that
here now.
Thanks,
— Leif and Phil