astyle formatting

This commit is contained in:
Daniel Marjamäki 2018-06-17 08:45:26 +02:00
parent f8e96307f7
commit c102638970
1 changed files with 1 additions and 1 deletions

View File

@ -4854,7 +4854,7 @@ void SymbolDatabase::setValueType(Token *tok, const ValueType &valuetype)
if (vt1) if (vt1)
setValueType(parent, *vt1); setValueType(parent, *vt1);
else if (mIsCpp && ((Token::Match(parent->tokAt(-3), "%var% ; %var% =") && parent->strAt(-3) == parent->strAt(-1)) || else if (mIsCpp && ((Token::Match(parent->tokAt(-3), "%var% ; %var% =") && parent->strAt(-3) == parent->strAt(-1)) ||
Token::Match(parent->tokAt(-1), "%var% ="))) { Token::Match(parent->tokAt(-1), "%var% ="))) {
Token *var1Tok = parent->strAt(-2) == ";" ? parent->tokAt(-3) : parent->tokAt(-1); Token *var1Tok = parent->strAt(-2) == ";" ? parent->tokAt(-3) : parent->tokAt(-1);
Token *autoTok = nullptr; Token *autoTok = nullptr;
if (Token::Match(var1Tok->tokAt(-2), ";|{|}|(|const auto")) if (Token::Match(var1Tok->tokAt(-2), ";|{|}|(|const auto"))