@@ -442,14 +442,15 @@ namespace ValueFlow
442442 }
443443
444444 // Offset of non null pointer is not null also
445- else if (astIsPointer (tok) && Token::Match (parent, " +|-" ) && value.isIntValue () && value.isImpossible () && value.intvalue == 0 ) {
445+ else if (astIsPointer (tok) && Token::Match (parent, " +|-" ) && value.isIntValue () && value.isImpossible () &&
446+ value.intvalue == 0 ) {
446447 setTokenValue (parent, value, settings);
447448 }
448449
449450 // Calculations..
450- else if ((parent->isArithmeticalOp () || parent->isComparisonOp () || (parent->tokType () == Token::eBitOp) || (parent-> tokType () == Token::eLogicalOp)) &&
451- parent->astOperand1 ( ) &&
452- parent->astOperand2 ()) {
451+ else if ((parent->isArithmeticalOp () || parent->isComparisonOp () || (parent->tokType () == Token::eBitOp) ||
452+ ( parent->tokType () == Token::eLogicalOp) ) &&
453+ parent->astOperand1 () && parent-> astOperand2 ()) {
453454
454455 const bool noninvertible = isNonInvertibleOperation (parent);
455456
@@ -664,7 +665,8 @@ namespace ValueFlow
664665 }
665666
666667 // C++ init
667- else if (parent->str () == " {" && Token::simpleMatch (parent->previous (), " = {" ) && Token::simpleMatch (parent->link (), " } ;" )) {
668+ else if (parent->str () == " {" && Token::simpleMatch (parent->previous (), " = {" ) &&
669+ Token::simpleMatch (parent->link (), " } ;" )) {
668670 const Token* lhs = parent->previous ()->astOperand1 ();
669671 if (lhs && lhs->valueType ()) {
670672 if (lhs->valueType ()->isIntegral () || lhs->valueType ()->isFloat () || (lhs->valueType ()->pointer > 0 && value.isIntValue ())) {
0 commit comments