// Before: co_yield* x; co_return* x; // After: co_yield *x; co_return *x;
Add unit-test to cover these cases.
Paths
| Differential D71731
[Format] fix dereference of pointers in co_yeld and co_return statements AcceptedPublic Authored by sugak on Dec 19 2019, 3:52 PM.
Details
Summary // Before: co_yield* x; co_return* x; // After: co_yield *x; co_return *x; Add unit-test to cover these cases.
Diff Detail
Event TimelineComment Actions Nice! Thanks for this. This looks good to me, but I'll defer to the other reviewers you specified, since I think they're more familiar with clang-format. This revision is now accepted and ready to land.Dec 20 2019, 6:06 AM
Revision Contents
Diff 234800 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|