]> granicus.if.org Git - clang/commit
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)
commit5d393210ed7c1af6fd010829a136093d06251915
treebc017aab2a1516e774567ab53bae0b6c9372ac8d
parentc28190333c47d4d1cafb5f4904f31d6703a6df02
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;

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