This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Refactor coroutine_traits lookup
ClosedPublic

Authored by urnathan on Dec 20 2021, 5:06 AM.

Details

Summary

To allow transition from the TS-specified std::experimental::coroutine_traits to the C++20-specified std::coroutine_traits, we lookup in both places and provide helpful diagnostics. This refactors the code to avoid separate paths to std::experimental lookups. (and therefore makes the subsequent changes I'm going for clearer).

Diff Detail

Event Timeline

urnathan requested review of this revision.Dec 20 2021, 5:06 AM
urnathan created this revision.
urnathan updated this revision to Diff 395504.Dec 20 2021, 11:50 AM

rebased on top of D116026

ChuanqiXu accepted this revision.Dec 20 2021, 5:39 PM

LGTM with nit suggestion. Thanks!

clang/lib/Sema/SemaCoroutine.cpp
1668

Could we remove the date here?

This revision is now accepted and ready to land.Dec 20 2021, 5:39 PM
This revision was landed with ongoing or failed builds.Dec 21 2021, 7:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2021, 7:29 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript