[PATCH] D69762: [Diagnostics] Try to improve warning message for -Wreturn-type

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 13:37:15 PST 2019


xbolva00 added a comment.

I am not sure if "may" is ideal, it could suggest that compiler is not very sure and emits just some conservative message.

"not all paths in this non-void {function,block} return a value" gives some extra confidence that compiler knows there is a buggy control path.


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