clang-format: Enable formatting of lambdas with explicit return type.
So clang-format can now format: int c = []()->int { return 2; }(); int c = []()->vector<int> { return { 2 }; }(); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199368 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/FormatToken.cpp 30 additions, 0 deletionslib/Format/FormatToken.cpp
- lib/Format/FormatToken.h 3 additions, 0 deletionslib/Format/FormatToken.h
- lib/Format/TokenAnnotator.cpp 2 additions, 32 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/UnwrappedLineParser.cpp 8 additions, 2 deletionslib/Format/UnwrappedLineParser.cpp
- unittests/Format/FormatTest.cpp 4 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment