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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to