valueFlowContainerReverse: Fix FPs when there is assignment
This commit is contained in:
parent
907f81d059
commit
f37434cd1d
|
@ -3420,6 +3420,8 @@ static void valueFlowContainerReverse(const Token *tok, unsigned int containerId
|
|||
break;
|
||||
if (tok->varId() != containerId)
|
||||
continue;
|
||||
if (Token::Match(tok, "%name% ="))
|
||||
break;
|
||||
if (!tok->valueType() || !tok->valueType()->container)
|
||||
continue;
|
||||
if (Token::Match(tok, "%name% . %name% (") && tok->valueType()->container->getAction(tok->strAt(2)) != Library::Container::Action::NO_ACTION)
|
||||
|
|
Loading…
Reference in New Issue