← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] bad field declaration in SEG class

 

On Mon, Apr 21, 2014 at 08:09:42PM +0200, Camille 019 wrote:
> To avoid this kind of bugs it is preferable to declare only one field per line.

It's easy to get that wrong when you write

TYPE& a;

instead of

TYPE &a;

and it's typical for C and C++ (the compiler doesn't look at spacing:D)
However many people prefer the first style (strangely MISRA doesn't have
a rule for it)

While you are looking at the CERN files, look out for involuntary
definitions (not declaration) in headers, a few happened in the past...

-- 
Lorenzo Marcantonio
Logos Srl


References