[PATCH] D132295: [clang-format] Change heuristic for locating lambda template arguments
Emilia Dreamer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 21 06:19:12 PDT 2022
rymiel updated this revision to Diff 454304.
rymiel added a comment.
Add a few format tests in addition to the annotator tests
>From some incidental testing, I am pretty sure the formatting of lambdas that were mis-annotated as "array subscript" tended to end up being formatted correct-ish, however, I added a test case for the bug which this patch solves, which I should have done earlier.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132295/new/
https://reviews.llvm.org/D132295
Files:
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132295.454304.patch
Type: text/x-patch
Size: 5663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220821/43cca146/attachment.bin>
More information about the cfe-commits
mailing list