Improve formatting of chained calls.
authorDaniel Jasper <djasper@google.com>
Fri, 15 Mar 2013 14:57:30 +0000 (14:57 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 15 Mar 2013 14:57:30 +0000 (14:57 +0000)
commit9b33424d6fbb7fb407db886bb702e6fd34cb22ad
treeda7821ef572d781e11cedb50563047f71eefb0f1
parent845b57537036da9baf1596c42f5411958270be3f
Improve formatting of chained calls.

clang-format already prevented sequences like:
  ...
  SomeParameter).someFunction(
  ...

as those are quite confusing. This failed on:
  ...
  SomeParameter).someFunction(otherFunction(
  ...

Fixed in this patch.

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