[PATCH] D69762: [Diagnostics] Try to improve warning message for -Wreturn-type
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 11:52:51 PST 2019
aaron.ballman added a comment.
I think the new text is more clear than the old text, so I'm fine with the current direction you're going.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:584-587
def err_maybe_falloff_nonvoid_block : Error<
"control may reach end of non-void block">;
def err_falloff_nonvoid_block : Error<
"control reaches end of non-void block">;
----------------
Should we change this wording as well? Along with any other instances of similar wording (I don't recall if we have something similar for lambdas or if we defer to the function diagnostics in that case)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69762/new/
https://reviews.llvm.org/D69762
More information about the cfe-commits
mailing list