> On Jun 6, 2017, at 10:51 PM, James Peach <jpe...@apache.org> wrote:
> 
> Hi all,
> 
> I’m starting to see code written like this, with no empty line between 
> functions:
> 
> void
> foo()
> {
> }
> void
> bar()
> {
> }
> 


This is likely a misbehavior of clang-format. I’ve had it do this on my code. 
You can force it by putting in whitespaces again, and hope that it doesn’t mess 
with you again.

The intent for sure has always been to have whitespaces between these, and I 
know we had this discussion before when we noticed clang-format messing shit up.

Cheers,

— Leif

> I would like to be consistent about keeping a single empty line between 
> functions, even inline in class definitions. The extra whitespace makes it 
> easier to read and to navigate in most editors.
> 
> void
> foo()
> {
> }
> 
> void
> bar()
> {
> }
> 
> There’s no clang-format option for this, so assuming we agree, committers and 
> reviewers would have to pay attention and do it by hand.
> 
> thanks,
> James

Reply via email to