mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kapil Arya <ka...@mesosphere.io>
Subject Re: Mesos style question about blank lines
Date Fri, 20 Feb 2015 20:45:56 GMT
Thanks Vinod! This is clear now. Should we also add this to mesos-style
guide?  I can create a RR.

On Fri, Feb 20, 2015 at 3:23 PM, Vinod Kone <vinodkone@apache.org> wrote:

> A1 - Single
> A2 - Double
> B - Single
>
> On Fri, Feb 20, 2015 at 12:20 PM, Kapil Arya <kapil@mesosphere.io> wrote:
>
> > What is the preferred amount of blank lines before the first function
> > definition inside a namespace? I have a seen single blank line as well as
> > two blank lines in our code base.
> >
> > For example, in the following snippet from a cpp file, how many blank
> lines
> > should be inserted at A1, A2 and B?
> >
> > namespace mesos {
> >         <- A1. Single blank line or two?
> > using mesos::slave::Flags;
> >         <- A2. Single blank line or two?
> > void foo()
> > {
> > }
> >
> >
> > void bar ()
> > {
> > }
> >         <- B. Single blank line or two?
> > } // namespace mesos {
> >
> >
> > Kapil
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message