clang-format: Fix incorrect trailing return arrow detection.
authorDaniel Jasper <djasper@google.com>
Wed, 22 Oct 2014 08:42:58 +0000 (08:42 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 22 Oct 2014 08:42:58 +0000 (08:42 +0000)
commite8a4939b77184fc130ed077c92ef57d274b2e414
tree08f521876b42e7821f8f027271e4ef7d1172dfad
parentc928de3e8e95ab02418720b765b2342123ade5b8
clang-format: Fix incorrect trailing return arrow detection.

Before:
  auto doSomething(Aaaaaa* aaaaaa) -> decltype(aaaaaa -> f()) {}

After:
  auto doSomething(Aaaaaa* aaaaaa) -> decltype(aaaaaa->f()) {}

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