Address part of https://github.com/llvm/llvm-project/issues/60079.
Deleted and Defaulted functions are implicitly inline, but that state
is not set at the point that we perform the diagnostic checks for externally-
visible non-inline functions; check the function body type explicitly in the
diagnostic.
I prefer to add a FIXME here to say that we need to find a better place for the check to eliminate the unnecessary check for BodyKind . The current check for BodyKind looks a little bit hacky to me.