Boost logo

Boost :

Subject: Re: [boost] clang-format file
From: Hans Dembinski (hans.dembinski_at_[hidden])
Date: 2018-01-23 14:09:12

Hi Damian,

> On 23. Jan 2018, at 14:48, Damian Vicino via Boost <boost_at_[hidden]> wrote:

> I only expected very basic things to be declared like, how many
> spaces for indentation, braces positions (next line or same line),
> underscore_separated_names and not camelCase.

as far as I remember, there are no official rules on style. I guess most people won't mind where you put your spaces and how many you use, as long as you don't do bad things like mixing tabs and spaces or if you are inconsistent with your style. These things can be changed later at any point with clang-format, too.

One consistent thing it noticed, is a preference of underscore_separated_names over camelCase in Boost. You probably want to follow this, because that is also the style of the C++ stdlib. Boost, as a kind of unofficial extension of the C++ stdlib, generally follow its style (or perhaps the style of the stdlib follows Boost, as several libs migrated from Boost to the stdlib).

Best regards,

Boost list run by bdawes at, gregod at, cpdaniel at, john at