Refactoring: Use %op% instead of Token::isOp
This commit is contained in:
parent
7320bbd8fd
commit
f76eb5541c
|
@ -1492,7 +1492,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
|
||||||
{
|
{
|
||||||
addtoken(&rettail, tok, "use");
|
addtoken(&rettail, tok, "use");
|
||||||
}
|
}
|
||||||
else if ((Token::Match(tok->previous(), "[;{}=(,]") || tok->previous()->isOp()) && Token::Match(tok, "%varid% [", varid))
|
else if (Token::Match(tok->previous(), ";|{|}|=|(|,|%op% %varid% [", varid))
|
||||||
{
|
{
|
||||||
// warning is written for "dealloc ; use_ ;".
|
// warning is written for "dealloc ; use_ ;".
|
||||||
// but this use doesn't affect the leak-checking
|
// but this use doesn't affect the leak-checking
|
||||||
|
|
Loading…
Reference in New Issue