Consistently put {} onto the same line for empty functions.
authorDaniel Jasper <djasper@google.com>
Thu, 21 Feb 2013 21:33:55 +0000 (21:33 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 21 Feb 2013 21:33:55 +0000 (21:33 +0000)
commit12ef4e59effbad1f76bbe0b5011d45e777436b4c
treee86378ae023a8ad4d722d14e76af38fa5f044e7f
parent699cf390ff1e621a1fa78dd5b3e90cf6d2c10299
Consistently put {} onto the same line for empty functions.

This fixes llvm.org/PR15167.

Before:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL()
    : AAAAAAAA(10), BBBBBBBBB(10) {
}
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10) {}

After:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL()
    : AAAAAAAA(10), BBBBBBBBB(10) {}
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10) {}

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