clang-format: More eagerly wrap trailing return types.
Before: template <typename T> auto aaaaaaaaaaaaaaaaaaaaaa(T t) -> decltype(eaaaaaaaaaaaaaaa<T>(t.a) .aaaaaaaa()); After: template <typename T> auto aaaaaaaaaaaaaaaaaaaaaa(T t) -> decltype(eaaaaaaaaaaaaaaa<T>(t.a).aaaaaaaa()); Also add a test case for a difficult template parsing case I stumbled accross. Needs fixing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239149 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/ContinuationIndenter.cpp 1 addition, 1 deletionlib/Format/ContinuationIndenter.cpp
- lib/Format/TokenAnnotator.cpp 7 additions, 6 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/UnwrappedLineParser.cpp 1 addition, 1 deletionlib/Format/UnwrappedLineParser.cpp
- unittests/Format/FormatTest.cpp 4 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment