Remove excess use of auto on initializers (auto x = Y(z) -> Y x(z)) (#4239)

This commit is contained in:
David Blaikie
2024-08-22 20:29:35 +00:00
committed by GitHub
parent 1e1034ee81
commit a17480133f
9 changed files with 23 additions and 24 deletions
@@ -25,8 +25,7 @@ static auto OnParseError(Context& context, Context::StateStackEntry state,
// do this.
static auto HasModifier(Context& context, Context::StateStackEntry state,
Lex::TokenKind modifier) -> bool {
for (auto it = Lex::TokenIterator(state.token); it != context.position();
++it) {
for (Lex::TokenIterator it(state.token); it != context.position(); ++it) {
if (context.tokens().GetKind(*it) == modifier) {
return true;
}