Do not force linebreaks when MaxEmptyLinesToKeep is 0.
authorManuel Klimek <klimek@google.com>
Tue, 28 Jul 2015 15:50:24 +0000 (15:50 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 28 Jul 2015 15:50:24 +0000 (15:50 +0000)
commit9e32199861c082d36b0439756f616ee91855dd6e
treec4384666af27058c1a441e9d2e47a3483032519a
parent7d47b7a29466ecfa7c9907243e1d375225a78fb0
Do not force linebreaks when MaxEmptyLinesToKeep is 0.

Previously we would format
 call(

     p);
as
 call(
     p);
with MaxEmptyLinesToKeep == 0.

Now we format it as:
  call(p);

llvm-svn: 243429
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp