forked from OSchip/llvm-project
fb6deeb984
Rather than sprinkle calls to DiagnoseUnusedExprResult() around in places where we want diagnostics, we now diagnose unused expression statements and full expressions in a more generic way when acting on the final expression statement. This results in more appropriate diagnostics for [[nodiscard]] where we were previously lacking them, such as when the body of a for loop is not a compound statement. This patch fixes PR39837. llvm-svn: 350404 |
||
---|---|---|
.. | ||
basic | ||
class | ||
class.access | ||
class.derived | ||
concepts-ts | ||
conv | ||
cpp/cpp.predefined | ||
dcl.dcl | ||
dcl.decl | ||
drs | ||
except | ||
expr | ||
lex | ||
modules-ts | ||
over | ||
special | ||
stmt.stmt | ||
temp |