]> granicus.if.org Git - clang/commit
Remove unncessary whitespace when triggered on empty line.
authorDaniel Jasper <djasper@google.com>
Thu, 7 Mar 2013 20:50:00 +0000 (20:50 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 7 Mar 2013 20:50:00 +0000 (20:50 +0000)
commitf302354a7d1a63186fb0d9aa600ce3257be1f690
tree8796a9931027a170f05f930ae1d41de9cb307fa7
parentf4b48042724d2253d0426cadcb93e24eeb47e264
Remove unncessary whitespace when triggered on empty line.

With the cursor located at "I", clang-format would not do anything to:

int a;

   I

  int b;

With this patch, it reduces the number of empty lines as necessary, and
removes unnecessary whitespace. It does not change/reformat "int a;" or
"int b;".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176650 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp