[clang-format] Fix the bug that joins template closer and > or >>
authorOwen Pan <owenpiano@gmail.com>
Fri, 16 Aug 2019 21:49:17 +0000 (21:49 +0000)
committerOwen Pan <owenpiano@gmail.com>
Fri, 16 Aug 2019 21:49:17 +0000 (21:49 +0000)
commitac67414618df9fdc24754b05cf438f8f7568f04a
treeb493b6805c3d7a3574ee2c12ac1970fbaa73342b
parent8341a847a22800056aa9a7bf446f47f1a530668f
[clang-format] Fix the bug that joins template closer and > or >>

Also fixes a buggy test case.

See PR42404

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

llvm-svn: 369157
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp