Suggested coding style change for functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 23, 2013 at 11:37:33AM +0300, Tanu Kaskinen wrote:
> On Mon, 2013-09-23 at 10:21 +0200, David Henningsson wrote:
> > On 09/20/2013 11:23 AM, Peter Meerwald wrote:
> > > I think both coding styles are sane and I suggest to NOT convert to a new 
> > > style
> > > 
> > > the 'other projects' is Gnome?
> > 
> > Gnome, Linux Kernel, FluidSynth (as mentioned previously).
> > 
> > > there is not the ONE style and it really depends on your personal 
> > > situation which styles you work more often with -- what's good for one 
> > > contributer might not be for another
> > 
> > Out of curiousity, do you know any bigger open source projects that do
> > the "no newline" style? I don't think I've ever seen one except for
> > PulseAudio.
> 
> Quoting the CODING_STYLE file of systemd:
> 
>     - Try to use this:
> 
>           void foo() {
>           }
> 
>       instead of this:
> 
>           void foo()
>           {
>           }
> 
>       But it's OK if you don't.
> 

Add Chromium and LLVM/CLANG to that list.
But yes, it seems that David is right here and that it is a somewhat
less common style. It probably would be interesting to see some actual
numbers here but that would be too much work.


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux