astyle formatting

This commit is contained in:
Daniel Marjamäki 2013-09-11 15:49:40 +02:00
parent 0439f25bbd
commit ddefe62c12
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ void CheckBool::checkComparisonOfBoolExpressionWithInt()
break; break;
} }
if (Token::Match(lhs,"<|<=|>|>=")) { if (Token::Match(lhs,"<|<=|>|>=")) {
if (_tokenizer->isCPP() && tok->str() == ">" && if (_tokenizer->isCPP() && tok->str() == ">" &&
(Token::Match(lhs->previous(), "%var% <") || lhs->str() == ">")) (Token::Match(lhs->previous(), "%var% <") || lhs->str() == ">"))
continue; continue;
while (NULL != (lhs = lhs->previous())) { while (NULL != (lhs = lhs->previous())) {