← Back to team overview

kicad-developers team mailing list archive

Re: clang-format seems to be breaking the rules?

 

On Wed, Mar 20, 2019 at 6:16 PM John Beard <john.j.beard@xxxxxxxxx> wrote:
> If this is "correct" KiCad style, we should change clang-format.

And update the coding policy documentation, of course.

> WRT to template spacing inside < >, again the policy says nothing.
> Clang format uses SpacesInAngles: false, which gives <FOO> rather than
> < Foo >. Notably, no-spaces appears to outnumber with-spaces roughly
> 3.5-1 in extant code.

Actually, the policy does present no-spaces in the example code, just
not explicitly in the text: "std::vector<char>"

Cheers,

John


References