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 <[email protected]> wrote:

> A1 - Single
> A2 - Double
> B - Single
>
> On Fri, Feb 20, 2015 at 12:20 PM, Kapil Arya <[email protected]> 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
> >
>

Reply via email to