[PATCH] D66332: [clang-format] Fix the bug that joins template closer and > or >>
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 23:05:57 PDT 2020
owenpan added a comment.
The culprit is `AnnotatingParser::parseAngle()` in clang/lib/Format/TokenAnnotator.cpp. This commit merely uncovered it. :)
Upon reading a `<` token, `parseAngle()` tries to scan the rest of the line to find a matching `>`. If found, it's given the type `TT_TemplateCloser`. This should be fixed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66332/new/
https://reviews.llvm.org/D66332
More information about the cfe-commits
mailing list