[all-commits] [llvm/llvm-project] b50fea: [clang] Allow using std::coroutine_traits in std:...

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Sun Jan 2 12:48:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b50fea47b6c454581fce89af359f3afe5154986c
      https://github.com/llvm/llvm-project/commit/b50fea47b6c454581fce89af359f3afe5154986c
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2022-01-02 (Sun, 02 Jan 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaCoroutine.cpp
    A clang/test/SemaCXX/coroutine-mixed3-exp-namespace.cpp
    A clang/test/SemaCXX/coroutine-mixed4-exp-namespace.cpp

  Log Message:
  -----------
  [clang] Allow using std::coroutine_traits in  std::experimental

This is that diff I was aiming for.  When transitioning code from
coroutines-ts to c++20, it can be useful to add a using declaration to
std::experimental pointing to std::coroutine_traits.  This permits
that use by checking whether lookup in std::experimentl finds a
different decl to lookup in std.  You still get a warning about
std::experimental::coroutine_traits being a thing, just not an error.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D115943




More information about the All-commits mailing list