clang-format: Prefer breaking before trailing return arrows.
authorDaniel Jasper <djasper@google.com>
Fri, 17 Oct 2014 14:37:40 +0000 (14:37 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 17 Oct 2014 14:37:40 +0000 (14:37 +0000)
commitda07a72928c58204a4234cd8f69203424a970856
treef155a89bd416f8641544740ba73dfe969bd29bfb
parent238692beb90235464e82247d3d7fb5a387eeb5c2
clang-format: Prefer breaking before trailing return arrows.

Before:
  auto SomeFunction(
      A aaaaaaaaaaaaaaaaaaaaa) const -> decltype(f(aaaaaaaaaaaaaaaaaaaaa)) {}

After:
  auto SomeFunction(A aaaaaaaaaaaaaaaaaaaaa) const
      -> decltype(f(aaaaaaaaaaaaaaaaaaaaa)) {}

llvm-svn: 220043
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp