File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6905,10 +6905,10 @@ static void valueFlowContainerSize(const TokenList& tokenlist,
69056905 }
69066906 }
69076907 } else if (Token::Match (tok, " ;|{|} %var% =" ) && Token::Match (tok->tokAt (2 )->astOperand2 (), " [({]" ) &&
6908- // init list
6909- ((tok->tokAt (2 ) == tok->tokAt (2 )->astOperand2 ()->astParent () && !tok->tokAt (2 )->astOperand2 ()->astOperand2 () && tok->tokAt (2 )->astOperand2 ()->str () == " {" ) ||
6910- // constructor
6911- (!Token::simpleMatch (tok->tokAt (2 )->astOperand2 ()->astOperand1 (), " ." ) && settings.library .detectContainer (tok->tokAt (3 ))))) {
6908+ // init list
6909+ ((tok->tokAt (2 ) == tok->tokAt (2 )->astOperand2 ()->astParent () && !tok->tokAt (2 )->astOperand2 ()->astOperand2 () && tok->tokAt (2 )->astOperand2 ()->str () == " {" ) ||
6910+ // constructor
6911+ (!Token::simpleMatch (tok->tokAt (2 )->astOperand2 ()->astOperand1 (), " ." ) && settings.library .detectContainer (tok->tokAt (3 ))))) {
69126912 Token* containerTok = tok->next ();
69136913 if (containerTok->exprId () == 0 )
69146914 continue ;
You can’t perform that action at this time.
0 commit comments