Add citations to the Coroutines TS to the isValidCoroutineContext
function, as well as a FIXME and test for [expr.await]p2, which states
a co_await expression cannot be used in a default argument.
Test Plan: check-clang
Paths
| Differential D48519
[Sema] isValidCoroutineContext FIXME and citations ClosedPublic Authored by modocache on Jun 23 2018, 8:46 AM.
Details Summary Add citations to the Coroutines TS to the isValidCoroutineContext Test Plan: check-clang
Diff Detail
Event TimelineComment Actions Also @GorNishanov I'm curious about your two cents on whether comments like these are valuable. If you think they are I may add a few more with post-commit review.
Comment Actions LGTM
This revision is now accepted and ready to land.Jun 23 2018, 10:00 AM Closed by commit rC335420: [Sema] isValidCoroutineContext FIXME and citations (authored by modocache). · Explain WhyJun 23 2018, 11:05 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 152598 lib/Sema/SemaCoroutine.cpp
test/SemaCXX/coroutines.cpp
|
@GorNishanov Is there anything in the TS that states copy and move assignment operators shall not include await or yield expressions? These were added D25292 but I'm not sure whether I'm missing something in the TS text, or if maybe this language was in a prior revision of the TS.