[pulseaudio-discuss] Suggested coding style change for functions

Damir Jelić poljarinho at gmail.com
Mon Sep 23 03:29:49 PDT 2013


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.


More information about the pulseaudio-discuss mailing list