clang-format: Indent correctly in conditional expressions after return.
authorDaniel Jasper <djasper@google.com>
Mon, 8 Dec 2014 21:28:31 +0000 (21:28 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 8 Dec 2014 21:28:31 +0000 (21:28 +0000)
commita536df4b28b2ab1ab495d45d674e32f5eec23a28
treed19137ad3b3e7ac6947ba680b437c2895a7e0fdc
parent025f860638d20ed3c9774934f301647643ac8dc8
clang-format: Indent correctly in conditional expressions after return.

This only applies when not aligning after the return itself (which is
commonly done for C++.

Before:
  return aaaaaaaaaa
      ? bbbbbbbbbb(
             bbbbbb)  // This is indented relative to aaaaaaaaaa.
      : b;

After:
  return aaaaaaaaaa
      ? bbbbbbbbbb(
            bbbbbb)
      : b;

llvm-svn: 223694
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTestJava.cpp