use early continue
This commit is contained in:
parent
469cb7e6df
commit
42bcb6d417
|
@ -471,7 +471,8 @@ std::list<TemplateSimplifier::TokenAndName> TemplateSimplifier::getTemplateDecla
|
||||||
std::list<TokenAndName> declarations;
|
std::list<TokenAndName> declarations;
|
||||||
for (Token *tok = tokens; tok; tok = tok->next()) {
|
for (Token *tok = tokens; tok; tok = tok->next()) {
|
||||||
setScopeInfo(tok, &scopeInfo);
|
setScopeInfo(tok, &scopeInfo);
|
||||||
if (Token::simpleMatch(tok, "template <")) {
|
if (!Token::simpleMatch(tok, "template <"))
|
||||||
|
continue;
|
||||||
// Some syntax checks, see #6865
|
// Some syntax checks, see #6865
|
||||||
if (!tok->tokAt(2))
|
if (!tok->tokAt(2))
|
||||||
syntaxError(tok->next());
|
syntaxError(tok->next());
|
||||||
|
@ -497,7 +498,6 @@ std::list<TemplateSimplifier::TokenAndName> TemplateSimplifier::getTemplateDecla
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return declarations;
|
return declarations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue