mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove excess use of auto on initializers (auto x = Y(z) -> Y x(z)) (#4239)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user