Look for coroutine_traits and friends in std::experimental namespace.
Patch (mostly) by EricWF.
Details
Diff Detail
Event Timeline
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
8279–8282 | Is this clang-format'd? |
Hijacked to address review comments. @GorNishanov feel free to commandeer this revision back.
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
8157–8160 | If you're going to track the namespace on creation, you need to add serialization code for your Sema::StdExperimentalNamespace storage. But I'd suggest taking a different approach: just treat this as a cache, and do a lookup for experimental within namespace std if the namespace is requested and not in the cache. |
Address comments about caching the std::experimental namespace. @rsmith could you please double check that lookupStdExperimentalNamespace() is correct?
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
8157–8160 | Done. Could you please double check I got it correct? |
include/clang/Sema/Sema.h | ||
---|---|---|
720–723 | This is in the middle of a block of implicitly-declared library entities (std::bad_alloc, std::align_val_t). Please reorder it after these and rename it to include the word Cache. |
Closed by: r283170 - [coroutines] Switch to using std::experimental namespace per P0057R5
This is in the middle of a block of implicitly-declared library entities (std::bad_alloc, std::align_val_t). Please reorder it after these and rename it to include the word Cache.