Tokenizer: Refactoring; use early return
This commit is contained in:
parent
df6a66deed
commit
b04285514f
|
@ -9681,7 +9681,8 @@ void Tokenizer::reportError(const std::list<const Token*>& callstack, Severity::
|
||||||
|
|
||||||
void Tokenizer::setPodTypes()
|
void Tokenizer::setPodTypes()
|
||||||
{
|
{
|
||||||
if (_settings) {
|
if (!_settings)
|
||||||
|
return;
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
if (!tok->isName())
|
if (!tok->isName())
|
||||||
continue;
|
continue;
|
||||||
|
@ -9698,7 +9699,6 @@ void Tokenizer::setPodTypes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Tokenizer::SimplifyNamelessRValueReferences()
|
void Tokenizer::SimplifyNamelessRValueReferences()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue