[all-commits] [llvm/llvm-project] 2ac339: [C++20] [Coroutines] Warn for deprecated form 'for...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Nov 22 00:09:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ac339ef5f0feca2abe2b8a1720839c58184166c
      https://github.com/llvm/llvm-project/commit/2ac339ef5f0feca2abe2b8a1720839c58184166c
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2021-11-22 (Mon, 22 Nov 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseStmt.cpp
    M clang/test/SemaCXX/co_await-range-for.cpp

  Log Message:
  -----------
  [C++20] [Coroutines] Warn for deprecated form 'for co_await'

The form 'for co_await' is part of CoroutineTS instead of C++20.
So if we detected the use of 'for co_await' in C++20, we should emit
a warning at least.




More information about the All-commits mailing list