Replace [-Wreturn-type] messages, "control reaches/may reach end of non-void x", to "non-void x does/might not return a value".
That warning is a very cryptic error copied from GCC, and I had to memorize the real meaning of the message in order to make sense of it.
If you were to merge this, 'Clang :: Misc/serialized-diags-stable.c' will fail.
I need some help on this one, as clang/test/Misc/Inputs/serialized-diags-stable.dia is a binary which needs to be regenerated, and I don't exactly know how to do that.
It seems like part of the problem here is that "non-void function" is sort-of nonsense due to a few missing words. How about:
or similar?
I think we still need the mention of control flow, because we're *not* saying the function contains no return statements, we're saying there's a control flow path that reaches the end of the function.