Subject: Re: [boost] clang-format file
From: Seth (bugs_at_[hidden])
Date: 2018-01-19 12:08:31
On 19-01-18 10:17, Stuart Dootson via Boost wrote:
> On 19 January 2018 at 06:22, FrÃ©dÃ©ric via Boost <boost_at_[hidden]>
>>> I was wondering if someone has a .clang-format file that works fine to
>>> check boost code.
>> It would be great to have the same presentation in every file!
> You could try using Unformat (https://github.com/johnmcfarlane/unformat) to
> generate one from the Boost code base... And then run the Boost code base
> through it to make it fully consistent with it ;-)
I completely don't expect any consistent style(s) to emerge. Moreover
heavy template/macro chicanery is usually exeptional - or suffers badly
in terms of readability.
In short, no there won't be a format that works. Even if you decide on
one, that would mean that **all** libraries take massive change-sets to
adhere to it, which wreaks havoc with respect to merge/diff stability, IME.
You **could** make a default format file that is **in principle**
endorsed by Boost. And then require new code to adhere to it, and allow
existing code to be reformatted upon maintenance.
Reliable improvement is always incremental.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk