]> granicus.if.org Git - clang/commit
Improve detection of trailing return types.
authorDaniel Jasper <djasper@google.com>
Thu, 11 Jul 2013 14:33:06 +0000 (14:33 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 11 Jul 2013 14:33:06 +0000 (14:33 +0000)
commit3262f4c10520cf11acea4cf590cfbf055924a41e
tree676a6991fff1a4dd446d9aac981626ad0021ba18
parente1f9a8e27f553dcb359dfd96a3fe3065de7c4dad
Improve detection of trailing return types.

Trailing return types can only occur in declaration contexts.

Before:
  void f() { auto a = b -> c(); }

After:
  void f() { auto a = b->c(); }

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