astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-08-17 19:55:21 +02:00
parent c5ebf26f9f
commit e442bc47b1
4 changed files with 13 additions and 13 deletions

View File

@ -2039,9 +2039,9 @@ void CheckOther::checkDuplicateExpression()
void CheckOther::oppositeExpressionError(const Token *tok1, const Token *tok2, const std::string &op, ErrorPath errors) void CheckOther::oppositeExpressionError(const Token *tok1, const Token *tok2, const std::string &op, ErrorPath errors)
{ {
if(tok1) if (tok1)
errors.emplace_back(tok1, ""); errors.emplace_back(tok1, "");
if(tok2) if (tok2)
errors.emplace_back(tok2, ""); errors.emplace_back(tok2, "");
reportError(errors, Severity::style, "oppositeExpression", "Opposite expression on both sides of \'" + op + "\'.\n" reportError(errors, Severity::style, "oppositeExpression", "Opposite expression on both sides of \'" + op + "\'.\n"

View File

@ -674,8 +674,8 @@ void Tokenizer::simplifyTypedef()
typeEnd = tokOffset; typeEnd = tokOffset;
tokOffset = tokOffset->next(); tokOffset = tokOffset->next();
while(Token::Match(tokOffset, "%type%") && while (Token::Match(tokOffset, "%type%") &&
(tokOffset->isStandardType() || Token::Match(tokOffset, "unsigned|signed")) ) { (tokOffset->isStandardType() || Token::Match(tokOffset, "unsigned|signed"))) {
typeEnd = tokOffset; typeEnd = tokOffset;
tokOffset = tokOffset->next(); tokOffset = tokOffset->next();
} }