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
+1 -1
View File
@@ -243,7 +243,7 @@ auto SourceGen::GenerateRandomIdentifier(
llvm::ArrayRef<char> start_chars = IdentifierStartChars();
llvm::ArrayRef<char> chars = IdentifierChars();
auto ident = llvm::StringRef(dest_storage.data(), dest_storage.size());
llvm::StringRef ident(dest_storage.data(), dest_storage.size());
do {
dest_storage[0] =
start_chars[absl::Uniform<int>(rng_, 0, start_chars.size())];