This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

sugak created this revision.Dec 19 2019, 3:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2019, 3:52 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sugak edited the summary of this revision. (Show Details)Dec 19 2019, 3:52 PM

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.

sammccall accepted this revision.Dec 20 2019, 6:06 AM
This revision is now accepted and ready to land.Dec 20 2019, 6:06 AM