[Ns-developers] Check-style.py and empty methods

L.Wood@surrey.ac.uk L.Wood at surrey.ac.uk
Sat Aug 28 17:03:25 PDT 2010


On 29 Aug 2010, at 01:01, Wood L Dr (Electronic Eng) wrote:

> The first style - two lines - is correct.

...because it's all about minimising the number of lines changed in a diff/patch.

> 
> On 28 Aug 2010, at 16:43, Mirko Banchi wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Hi all, these days i'm using check-style.py script in order to correct  
>> bad coding style in wifi section. I can see that the script treats  
>> empty braces of empty methods on two lines:
>> 
>> void
>> MyClass::MyEmptyMethod
>> {
>> }
>> 
>> rather than:
>> 
>> void
>> MyClass::MyEmptyMethod
>> {}
>> 
>> Is this correct?
>> 
>> Regards,
>> 
>> Mirko
>> 
>> - --
>> Mirko Banchi
>> 
>> e-mail:    mk.banchi at gmail.com
>> id-jabber: mk.banchi at jabber.org
>> 
>> PGP key fingerprint:
>> 
>> 308F BFB1 4E67 2522 C88E
>> DC69 7631 52ED 32A5 6456
>> 
>> 
>> 
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.8 (Darwin)
>> 
>> iEYEARECAAYFAkx5LoYACgkQdjFS7TKlZFYSNACfa+OoFQXexxiDmDHGwM6yCQj1
>> mhUAnjPKJPyTk0pQh0MmQjArN099laeY
>> =gQDY
>> -----END PGP SIGNATURE-----
>> 
> 
> Lloyd Wood
> L.Wood at surrey.ac.uk
> http://sat-net.com/L.Wood
> 
> 
> 

Lloyd Wood
L.Wood at surrey.ac.uk
http://sat-net.com/L.Wood






More information about the Ns-developers mailing list