[all-commits] [llvm/llvm-project] d4de2a: [clang][NFC] Refactor coroutine_traits lookup

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Tue Dec 21 07:29:26 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4de2a4d5905beb0602a615593daf003378ddb64
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M clang/lib/Sema/SemaCoroutine.cpp

  Log Message:
  [clang][NFC] Refactor coroutine_traits lookup

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.

Reviewed By: ChuanqiXu

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

More information about the All-commits mailing list