diff options
| author | Daniel Jasper <djasper@google.com> | 2014-12-08 13:22:37 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-12-08 13:22:37 +0000 |
| commit | 3431b7506939e742197fe803f9db412061778f2f (patch) | |
| tree | 661adcbc68df88cf309f38a4eefed2521f9abe68 /clang/lib/Format | |
| parent | 980385095ef8666ebccd72d46bc8f9c6ac95821a (diff) | |
| download | bcm5719-llvm-3431b7506939e742197fe803f9db412061778f2f.tar.gz bcm5719-llvm-3431b7506939e742197fe803f9db412061778f2f.zip | |
clang-format: Support commas in lambda return types.
Before:
auto next_pair = [](A * a) -> pair<A*, A*>{};
After:
auto next_pair = [](A* a) -> pair<A*, A*>{};
llvm-svn: 223652
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index d0c899ffe0b..6ff5405a1b4 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -880,6 +880,7 @@ bool UnwrappedLineParser::tryToParseLambda() { case tok::amp: case tok::star: case tok::kw_const: + case tok::comma: case tok::less: case tok::greater: case tok::identifier: |

