astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-11-12 10:08:57 +01:00
parent 0e11bb07c8
commit f096d7f474
2 changed files with 13 additions and 14 deletions

View File

@ -433,8 +433,7 @@ static void setTokenValue(Token* tok, const ValueFlow::Value &value, const Setti
if (value.isLifetimeValue()) {
if (value.lifetimeKind == ValueFlow::Value::Iterator && parent->isArithmeticalOp()) {
setTokenValue(parent,value,settings);
}
else if(astIsPointer(tok) && astIsPointer(parent) && (parent->isArithmeticalOp() || Token::Match(parent, "( %type%"))) {
} else if (astIsPointer(tok) && astIsPointer(parent) && (parent->isArithmeticalOp() || Token::Match(parent, "( %type%"))) {
setTokenValue(parent,value,settings);
}
return;