Tokenizer::simplifyTokenList: reduce indent.
No functional change.
This commit is contained in:
parent
dc6168b9d7
commit
fa5cdcb128
|
@ -1151,14 +1151,17 @@ void Tokenizer::simplifyTokenList()
|
|||
}
|
||||
|
||||
|
||||
// Replace 'sizeof(var)'..
|
||||
// Replace 'sizeof(var)' with 'sizeof(type)'
|
||||
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||
{
|
||||
if (Token::Match(tok, "[;{}] %type% %var% ;") && tok->tokAt(2)->varId() > 0)
|
||||
{
|
||||
if (! Token::Match(tok, "[;{}] %type% %var% ;"))
|
||||
continue;
|
||||
|
||||
if (tok->tokAt(2)->varId() <= 0)
|
||||
continue;
|
||||
|
||||
const unsigned int varid = tok->tokAt(2)->varId();
|
||||
|
||||
// Replace 'sizeof(var)' with 'sizeof(type)'
|
||||
int indentlevel = 0;
|
||||
for (Token *tok2 = tok; tok2; tok2 = tok2->next())
|
||||
{
|
||||
|
@ -1177,7 +1180,6 @@ void Tokenizer::simplifyTokenList()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Replace 'sizeof(type)'..
|
||||
|
|
Loading…
Reference in New Issue