]> granicus.if.org Git - clang/commit
Put short if statements on a single line.
authorDaniel Jasper <djasper@google.com>
Mon, 14 Jan 2013 14:14:23 +0000 (14:14 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 14 Jan 2013 14:14:23 +0000 (14:14 +0000)
commitfeb18f5ff2cfa952fec4e751eb9665706c4674af
treee52c5289db99a5b047ea5db6c2f4113af0ff7f13
parentacd356e18ecb8213d65f1454bb3c1bb4f6892bab
Put short if statements on a single line.

Before: if (a)
          return;
After:  if (a) return;

Not yet sure, whether this is always desired, but we can add options and
make this a style parameter as we go along.

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