[clang-format] Fix lambdas returning template specialization that contains operator...
authorJan Korous <jkorous@apple.com>
Tue, 5 Mar 2019 19:27:24 +0000 (19:27 +0000)
committerJan Korous <jkorous@apple.com>
Tue, 5 Mar 2019 19:27:24 +0000 (19:27 +0000)
commit88e15140ee54dab2b29940b514534df954e7da28
treed25ae1f13a3a9e2452b530846bf5650010cef94f
parent57fd733140f6b90f395aec654f8dc69cb0e2e233
[clang-format] Fix lambdas returning template specialization that contains operator in parameter

A template specialization of a template foo<int N> can contain integer constants and a whole bunch of operators - e. g.  foo< 1 ? !0 : (3+1)%4 >

Inspired by https://reviews.llvm.org/D58922

Differential Revision: https://reviews.llvm.org/D58934

llvm-svn: 355434
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp