[PATCH] D79895: Add a new warning to warn when passing uninitialized variables as const reference parameters to a function
Nikita Kniazev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 16:40:21 PDT 2020
nick added a comment.
> This warning can be turned off by the flag `-Wno-uninitialized-const-reference`.
Suggesting to turn off the warning should be the last resort. I am pointing to the false positives for large existing code bases from `-Wall` diagnostic.
> I don't think we can just make the diagnostic not fire for empty body consuming functions, if the function declaration and definition are in different translation units.
I am talking about the particular situation that is involves only inline functions with empty bodies. `boost::ignore_unused`-like functions are obviously come with definition.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79895/new/
https://reviews.llvm.org/D79895
More information about the cfe-commits
mailing list