mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 06:54:44 +01:00
Minor clang-tidy recommended cleanup (#5248)
Some minor code health improvements discovered by clang-tidy: * avoid copying; use const reference * harmonize parameter names * use more efficient absl::StrSplit-by-character
This commit is contained in:
@@ -122,7 +122,7 @@ class ExplorerFileTest : public FileTestBase {
|
||||
auto GetFileTestManifest() -> llvm::SmallVector<std::string> {
|
||||
llvm::SmallVector<std::string> manifest;
|
||||
auto content = ReadFile(absl::GetFlag(FLAGS_explorer_test_targets_file));
|
||||
for (const auto& line : absl::StrSplit(*content, "\n", absl::SkipEmpty())) {
|
||||
for (const auto& line : absl::StrSplit(*content, '\n', absl::SkipEmpty())) {
|
||||
manifest.push_back(std::string(line));
|
||||
}
|
||||
return manifest;
|
||||
|
||||
Reference in New Issue
Block a user