fix [lib/checkuninitvar.cpp:836]: (warning) Found simple pattern inside Token::Match() call: "&"
This commit is contained in:
parent
ab38ab800e
commit
2ddd4c7197
|
@ -833,7 +833,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
|
||||||
const Token *prev = vartok->tokAt(-2);
|
const Token *prev = vartok->tokAt(-2);
|
||||||
while (Token::Match(prev, "%name%|*"))
|
while (Token::Match(prev, "%name%|*"))
|
||||||
prev = prev->previous();
|
prev = prev->previous();
|
||||||
if (!Token::Match(prev, "&"))
|
if (!Token::simpleMatch(prev, "&"))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue