Skip to content

Commit 181ee8c

Browse files
authored
chore: checkers (#14298)
1 parent 7a641cf commit 181ee8c

26 files changed

+112
-59
lines changed

ci/cloudbuild/notifiers/logs/function/function.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ std::string const& destination() {
114114
auto HtmlHead(std::string const& pr, std::string const& sha) {
115115
std::ostringstream os;
116116
os << "<head><meta charset=\"utf-8\">\n";
117-
os << "<title>" << "PR #" << pr << " google-cloud-cpp@" << sha.substr(0, 7)
117+
os << "<title>"
118+
<< "PR #" << pr << " google-cloud-cpp@" << sha.substr(0, 7)
118119
<< "</title>\n";
119120
os << "<style>\n";
120121
os << "tr:nth-child(even) {background: #FFF}\n";

docfx/doxygen2markdown.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ bool AppendIfXRefSect(std::ostream& os, MarkdownContext const& ctx,
180180
auto const title = std::string_view{node.child_value("xreftitle")};
181181
if (title == "Deprecated") {
182182
// The GCP site has a special representation for deprecated elements.
183-
os << R"""(<aside class="deprecated"><b>Deprecated:</b>)""" << "\n";
183+
os << R"""(<aside class="deprecated"><b>Deprecated:</b>)"""
184+
<< "\n";
184185
AppendDescriptionType(os, ctx, node.child("xrefdescription"));
185186
os << "\n</aside>";
186187
return true;
@@ -366,8 +367,8 @@ bool AppendIfRef(std::ostream& os, MarkdownContext const& ctx,
366367
// DocFX YAML supports `xref:` as the syntax to cross link other documents
367368
// generated from the same DoxFX YAML source:
368369
// https://dotnet.github.io/docfx/tutorial/links_and_cross_references.html#using-cross-reference
369-
os << "[" << ref << "]" << "(xref:" << node.attribute("refid").as_string()
370-
<< ")";
370+
os << "[" << ref << "]"
371+
<< "(xref:" << node.attribute("refid").as_string() << ")";
371372
return true;
372373
}
373374

google/cloud/bigquery/v2/minimal/benchmarks/dataset_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,16 @@ int main(int argc, char* argv[]) {
165165
if (config.wants_help) {
166166
config.PrintUsage();
167167
}
168-
std::cout << "Exiting..." << "\n" << std::flush;
168+
std::cout << "Exiting..."
169+
<< "\n"
170+
<< std::flush;
169171
;
170172
return 0;
171173
}
172174
std::cout << "# Dataset Benchmark STARTED For GetDataset() and "
173175
"ListDatasets() APIs with test duration as ["
174-
<< config.test_duration.count() << "] seconds" << "\n"
176+
<< config.test_duration.count() << "] seconds"
177+
<< "\n"
175178
<< std::flush;
176179

177180
DatasetBenchmark benchmark(config);
@@ -230,7 +233,9 @@ int main(int argc, char* argv[]) {
230233
"GetDataset()", combined.get_results);
231234
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results",
232235
"ListDatasets()", combined.list_results);
233-
std::cout << "# Dataset Benchmark ENDED" << "\n" << std::flush;
236+
std::cout << "# Dataset Benchmark ENDED"
237+
<< "\n"
238+
<< std::flush;
234239

235240
return 0;
236241
}

google/cloud/bigquery/v2/minimal/benchmarks/job_cancel_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,15 @@ int main(int argc, char* argv[]) {
137137
<< std::flush;
138138
config.PrintUsage();
139139
}
140-
std::cout << "Exiting..." << "\n" << std::flush;
140+
std::cout << "Exiting..."
141+
<< "\n"
142+
<< std::flush;
141143
return 0;
142144
}
143145
std::cout << "# Job Benchmark STARTED For CancelJob() API with test "
144146
"duration as ["
145-
<< config.test_duration.count() << "] seconds" << "\n"
147+
<< config.test_duration.count() << "] seconds"
148+
<< "\n"
146149
<< std::flush;
147150

148151
JobBenchmark benchmark(config);
@@ -192,7 +195,9 @@ int main(int argc, char* argv[]) {
192195

193196
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results",
194197
"CancelJob()", combined.cancel_job_results);
195-
std::cout << "# Job Benchmark ENDED" << "\n" << std::flush;
198+
std::cout << "# Job Benchmark ENDED"
199+
<< "\n"
200+
<< std::flush;
196201

197202
return 0;
198203
}

google/cloud/bigquery/v2/minimal/benchmarks/job_insert_benchmark_programs.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,15 @@ int main(int argc, char* argv[]) {
166166
<< std::flush;
167167
config.PrintUsage();
168168
}
169-
std::cout << "Exiting..." << "\n" << std::flush;
169+
std::cout << "Exiting..."
170+
<< "\n"
171+
<< std::flush;
170172
return 0;
171173
}
172174
std::cout << "# Job Benchmark STARTED For InsertJob() API with test "
173175
"duration as ["
174-
<< config.test_duration.count() << "] seconds" << "\n"
176+
<< config.test_duration.count() << "] seconds"
177+
<< "\n"
175178
<< std::flush;
176179

177180
JobBenchmark benchmark(config);

google/cloud/bigquery/v2/minimal/benchmarks/job_query_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,15 @@ int main(int argc, char* argv[]) {
168168
<< std::flush;
169169
config.PrintUsage();
170170
}
171-
std::cout << "Exiting..." << "\n" << std::flush;
171+
std::cout << "Exiting..."
172+
<< "\n"
173+
<< std::flush;
172174
return 0;
173175
}
174176
std::cout << "# Job Benchmark STARTED For GetQueryResults() and "
175177
"Query() APIs with test duration as ["
176-
<< config.test_duration.count() << "] seconds" << "\n"
178+
<< config.test_duration.count() << "] seconds"
179+
<< "\n"
177180
<< std::flush;
178181

179182
JobBenchmark benchmark(config);
@@ -231,7 +234,9 @@ int main(int argc, char* argv[]) {
231234
combined.get_query_results);
232235
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results", "Query()",
233236
combined.query_results);
234-
std::cout << "# Job Benchmark ENDED" << "\n" << std::flush;
237+
std::cout << "# Job Benchmark ENDED"
238+
<< "\n"
239+
<< std::flush;
235240

236241
return 0;
237242
}

google/cloud/bigquery/v2/minimal/benchmarks/job_readonly_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,15 @@ int main(int argc, char* argv[]) {
170170
<< std::flush;
171171
config.PrintUsage();
172172
}
173-
std::cout << "Exiting..." << "\n" << std::flush;
173+
std::cout << "Exiting..."
174+
<< "\n"
175+
<< std::flush;
174176
return 0;
175177
}
176178
std::cout << "# Job Benchmark STARTED For GetJob() and "
177179
"ListJobs() APIs with test duration as ["
178-
<< config.test_duration.count() << "] seconds" << "\n"
180+
<< config.test_duration.count() << "] seconds"
181+
<< "\n"
179182
<< std::flush;
180183

181184
JobBenchmark benchmark(config);
@@ -231,7 +234,9 @@ int main(int argc, char* argv[]) {
231234
combined.get_results);
232235
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results",
233236
"ListJobs()", combined.list_results);
234-
std::cout << "# Job Benchmark ENDED" << "\n" << std::flush;
237+
std::cout << "# Job Benchmark ENDED"
238+
<< "\n"
239+
<< std::flush;
235240

236241
return 0;
237242
}

google/cloud/bigquery/v2/minimal/benchmarks/project_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,15 @@ int main(int argc, char* argv[]) {
148148
if (config.wants_help) {
149149
config.PrintUsage();
150150
}
151-
std::cout << "Exiting..." << "\n" << std::flush;
151+
std::cout << "Exiting..."
152+
<< "\n"
153+
<< std::flush;
152154
return 0;
153155
}
154156
std::cout << "# Project Benchmark STARTED For ListProjects() API with test "
155157
"duration as ["
156-
<< config.test_duration.count() << "] seconds" << "\n"
158+
<< config.test_duration.count() << "] seconds"
159+
<< "\n"
157160
<< std::flush;
158161

159162
ProjectBenchmark benchmark(config);
@@ -204,7 +207,9 @@ int main(int argc, char* argv[]) {
204207

205208
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results",
206209
"ListProjects()", combined.list_results);
207-
std::cout << "# Project Benchmark ENDED" << "\n" << std::flush;
210+
std::cout << "# Project Benchmark ENDED"
211+
<< "\n"
212+
<< std::flush;
208213

209214
return 0;
210215
}

google/cloud/bigquery/v2/minimal/benchmarks/table_benchmark_programs.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ int main(int argc, char* argv[]) {
165165
if (config.wants_help) {
166166
config.PrintUsage();
167167
}
168-
std::cout << "Exiting..." << "\n" << std::flush;
168+
std::cout << "Exiting..."
169+
<< "\n"
170+
<< std::flush;
169171
return 0;
170172
}
171173
std::cout << "# Table Benchmark STARTED For GetTable() and "
172174
"ListTables() APIs with test duration as ["
173-
<< config.test_duration.count() << "] seconds" << "\n"
175+
<< config.test_duration.count() << "] seconds"
176+
<< "\n"
174177
<< std::flush;
175178

176179
TableBenchmark benchmark(config);
@@ -226,7 +229,9 @@ int main(int argc, char* argv[]) {
226229
"GetTable()", combined.get_results);
227230
Benchmark::PrintThroughputResult(std::cout, "Throughput-Results",
228231
"ListTables()", combined.list_results);
229-
std::cout << "# Table Benchmark ENDED" << "\n" << std::flush;
232+
std::cout << "# Table Benchmark ENDED"
233+
<< "\n"
234+
<< std::flush;
230235

231236
return 0;
232237
}

google/cloud/bigtable/iam_policy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ google::iam::v1::Policy IamPolicy(
3939
}
4040

4141
std::ostream& operator<<(std::ostream& os, google::iam::v1::Policy const& rhs) {
42-
os << "IamPolicy={version=" << rhs.version()
43-
<< ", bindings=" << "IamBindings={";
42+
os << "IamPolicy={version=" << rhs.version() << ", bindings="
43+
<< "IamBindings={";
4444
bool first = true;
4545
for (auto const& binding : rhs.bindings()) {
4646
os << (first ? "" : ", ") << binding;

0 commit comments

Comments
 (0)