From de60f3b9ad6ea54c1d17ddcfaacd4625ff03abe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 4 Jan 2009 17:44:23 +0000 Subject: [PATCH] Variable usage: Addon to previous commit. Also handle "&=" and "^=" --- checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkother.cpp b/checkother.cpp index c0c026d71..c7d2437fa 100644 --- a/checkother.cpp +++ b/checkother.cpp @@ -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())))