thesamesam wrote:

> 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.

What I'm asking is: isn't this more susceptible to FPs than other typical Clang 
warnings, and hence maybe shouldn't be an error? e.g. cases where some assert 
is made in the only caller so we know it can't happen, or it's a fixed value 
and that is wrongly not propagated.

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