[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 27 06:03:51 PST 2025


Sirraide wrote:

> Is it implemented differently in Clang,

The way `-Wreturn-type` is implemented in Clang is we build a CFG from the AST and then walk that to determine whether all paths return a value, if that’s what you’re asking.

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


More information about the cfe-commits mailing list