Variable usage: Addon to previous commit. Also handle "&=" and "^="

This commit is contained in:
Daniel Marjamäki 2009-01-04 17:44:23 +00:00
parent bf98b14b4f
commit de60f3b9ad
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ void CheckOther::functionVariableUsage()
if ((Token::Match(tok,"[(=&!]") || isOp(tok)) && Token::Match(tok->next(), "%var%"))
varUsage[ tok->strAt(1) ] |= USAGE_READ;
if (Token::Match(tok, "-=|+=|*=|/= %var%") || Token::Match(tok, "|= %var%"))
if (Token::Match(tok, "-=|+=|*=|/=|&=|^= %var%") || Token::Match(tok, "|= %var%"))
varUsage[ tok->strAt(1) ] |= USAGE_READ;
if (Token::Match(tok, "%var%") && (tok->next()->str()==")" || isOp(tok->next())))