updates for usage issues: support for -uu, maybe/definitely distinctions

This commit is contained in:
Vern Paxson 2021-08-16 13:29:05 -07:00
parent 6726eaa0a9
commit f89ed411cf
4 changed files with 17 additions and 8 deletions

View file

@ -413,7 +413,7 @@ bool GenIDDefs::IsAggr(const Expr* e) const
void GenIDDefs::CheckVarUsage(const Expr* e, const ID* id)
{
if ( analysis_options.usage_issues == 0 || id->IsGlobal() ||
if ( analysis_options.usage_issues != 1 || id->IsGlobal() ||
suppress_usage > 0 )
return;