[clang] [Clang] Warn about `[[noreturn]]` on coroutines (PR #127623)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 10:36:30 PST 2025


Nerixyz wrote:

> Probably where we create the FunctionDecl?

The first warning is emitted when creating the return value. So I'm checking for a coroutine there. To fix the crash in the AnalysisBasedWarnings, I'm checking if a diagnostic with ID 0 would've been emitted.

https://github.com/llvm/llvm-project/pull/127623


More information about the cfe-commits mailing list