]> granicus.if.org Git - clang/commit
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)
commita71ab95a8ee42c6ca2068c48f26f27b0a106736d
tree3a6e9b4d3f8fce86f59d25544583a54c529b2d86
parent9ccafa316f09210ef23c6063ac741c72f204407c
clang-format: Fix incorrect trailing return arrow detection.

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

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

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