]> granicus.if.org Git - clang/commit
clang-format: Add support for formatting (some) lambdas with explicit template parame...
authorNico Weber <nicolasweber@gmx.de>
Fri, 13 Sep 2019 13:18:55 +0000 (13:18 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 13 Sep 2019 13:18:55 +0000 (13:18 +0000)
commite7ad04375483f262116f29730feaa0e2b4af4e47
tree1fc4e0eacc430526fdbeebcdabcc09ee4058fcab
parenta3b46043f1b5d591f0772f2da54f3277303e7d45
clang-format: Add support for formatting (some) lambdas with explicit template parameters.

This patch makes cases work where the lambda's template list doesn't
contain any of + - ! ~ / % << | || && ^ == != >= <= ? : true false
(see added FIXME).

Ports r359967 to clang-format.

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

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