]> granicus.if.org Git - clang/commit
Initial support for formatting trailing return types.
authorDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 14:36:48 +0000 (14:36 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 14:36:48 +0000 (14:36 +0000)
commit2ca3741a962ded08866596577aaee2f4ab74c955
tree5687532bf2d63c14034b59bc3079c30dc9d2de09
parent4549d7ffc15bdd7ab860aa68db089d9f559b79e7
Initial support for formatting trailing return types.

This fixes llvm.org/PR15170.

For now, the basic formatting rules are (based on the C++11 standard):
* Surround the "->" with spaces.
* Break before "->".

Also fix typo.

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