Enable readability-qualified-auto (#2314)

As suggested on #2310
This commit is contained in:
Jon Ross-Perkins
2022-10-18 19:21:49 -07:00
committed by GitHub
parent 03bcd91a9a
commit 8e5dcc2588
25 changed files with 188 additions and 176 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ auto Parse(Nonnull<Arena*> arena, std::string_view input_file_name,
// Prepare the lexer.
yyscan_t scanner;
yylex_init(&scanner);
auto buffer = yy_create_buffer(input_file, YY_BUF_SIZE, scanner);
auto* buffer = yy_create_buffer(input_file, YY_BUF_SIZE, scanner);
yy_switch_to_buffer(buffer, scanner);
ErrorOr<AST> result =
@@ -74,7 +74,7 @@ auto ParseFromString(Nonnull<Arena*> arena, std::string_view input_file_name,
// Prepare the lexer.
yyscan_t scanner;
yylex_init(&scanner);
auto buffer =
auto* buffer =
yy_scan_bytes(file_contents.data(), file_contents.size(), scanner);
yy_switch_to_buffer(buffer, scanner);