]> granicus.if.org Git - clang/commit
Avoid confusing indentations for chained function calls.
authorDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 11:57:27 +0000 (11:57 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 11:57:27 +0000 (11:57 +0000)
commitb1491798353b26c07b065c6975a91ff6214b8ff6
tree19356294b775b0c15bea57027074436963591760
parent53a015be76f53430cf8a3f42cf76562cf2ff3e54
Avoid confusing indentations for chained function calls.

Basically treat a function with a trailing call similar to a function
with multiple parameters.

Before:
  aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa))
      .aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa();

After:
  aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
                           aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa))
      .aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa();

Also fix typo.

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