Skip to content

Commit 580b965

Browse files
authored
cleanup: changes following clang-tidy suggestions (#14977)
1 parent d3104ef commit 580b965

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

google/cloud/storage/benchmarks/storage_parallel_uploads_benchmark.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ StatusOr<std::string> CreateTempFile(
107107
std::string const& directory,
108108
google::cloud::internal::DefaultPRNG& generator, std::uintmax_t size_left) {
109109
std::size_t const single_buf_size = 4 * 1024 * 1024;
110-
auto const file_name = directory + (directory.empty() ? "" : "/") +
111-
gcs_bm::MakeRandomFileName(generator);
110+
auto file_name = directory + (directory.empty() ? "" : "/") +
111+
gcs_bm::MakeRandomFileName(generator);
112112

113113
std::string random_data = gcs_bm::MakeRandomData(generator, single_buf_size);
114114

google/cloud/storagecontrol/v2/samples/storage_control_folder_samples.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void AutoRun(std::vector<std::string> const& argv) {
180180

181181
} // namespace
182182

183-
int main(int argc, char* argv[]) {
183+
int main(int argc, char* argv[]) { // NOLINT(bugprone-exception-escape)
184184
using google::cloud::testing_util::Example;
185185
namespace storagecontrol = google::cloud::storagecontrol_v2;
186186
using ClientCommand = std::function<void(storagecontrol::StorageControlClient,

google/cloud/storagecontrol/v2/samples/storage_control_managed_folder_samples.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void AutoRun(std::vector<std::string> const& argv) {
158158

159159
} // namespace
160160

161-
int main(int argc, char* argv[]) {
161+
int main(int argc, char* argv[]) { // NOLINT(bugprone-exception-escape)
162162
using google::cloud::testing_util::Example;
163163
namespace storagecontrol = google::cloud::storagecontrol_v2;
164164
using ClientCommand = std::function<void(storagecontrol::StorageControlClient,

0 commit comments

Comments
 (0)