[PATCH] D156247: [Clang] Add a warning on uses of coroutine keywords

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 09:36:00 PDT 2023


ilya-biryukov added a comment.

In D156247#4535664 <https://reviews.llvm.org/D156247#4535664>, @tahonermann wrote:

> At first, it sounded to me like the option that would best suit Google's needs is `-fno-coroutines`. However:
>
> - I see that Google does have some limited use of coroutines; perhaps that could be enabled on a per-TU or project basis by the build system? However...
> - The `-fno-coroutines` option doesn't seem to work; https://godbolt.org/z/Phhqjd9so (Nor does `-fcoroutines` work to enable standard library coroutine features in pre-C++20 language modes).

You are absolutely right, `-fno-coroutines` would totally work for us, had it been available.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156247/new/

https://reviews.llvm.org/D156247



More information about the cfe-commits mailing list