Skip to content

Commit 57c69ff

Browse files
committed
more fixes
1 parent b22c75c commit 57c69ff

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ Checks: >
119119
-readability-use-concise-preprocessor-directives,
120120
-readability-math-missing-parentheses,
121121
-readability-enum-initial-value
122+
-modernize-use-scoped-lock
123+
-readability-redundant-parentheses
122124
123125
# Turn all the warnings from the checks above into errors.
124126
WarningsAsErrors: "*"

ci/cloudbuild/builds/coverage.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ source module ci/cloudbuild/builds/lib/bazel.sh
2121
source module ci/cloudbuild/builds/lib/cloudcxxrc.sh
2222
source module ci/cloudbuild/builds/lib/integration.sh
2323

24-
export CC=gcc
25-
export CXX=g++
24+
#export CC=gcc
25+
#export CXX=g++
26+
export CC=clang
27+
export CXX=clang++
2628

2729
# Explicitly list the patterns that match hand-crafted code. Excluding the
2830
# generated code results in a longer list and more maintenance.

google/cloud/bigtable/client.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ namespace cloud {
2121
namespace bigtable {
2222
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
2323

24-
using ::google::cloud::bigtable_internal::MergeOptions;
2524
using ::google::cloud::internal::OptionsSpan;
2625

2726
StatusOr<PreparedQuery> Client::PrepareQuery(InstanceResource const& instance,
2827
SqlStatement const& statement,
2928
Options opts) {
30-
OptionsSpan span(MergeOptions(std::move(opts), opts_));
29+
OptionsSpan span(bigtable_internal::MergeOptions(std::move(opts), opts_));
3130
return conn_->PrepareQuery({instance, statement});
3231
}
3332

3433
future<StatusOr<PreparedQuery>> Client::AsyncPrepareQuery(
3534
InstanceResource const& instance, SqlStatement const& statement,
3635
Options opts) {
37-
OptionsSpan span(MergeOptions(std::move(opts), opts_));
36+
OptionsSpan span(bigtable_internal::MergeOptions(std::move(opts), opts_));
3837
return conn_->AsyncPrepareQuery({instance, statement});
3938
}
4039

4140
RowStream Client::ExecuteQuery(BoundQuery&& bound_query, Options opts) {
42-
OptionsSpan span(MergeOptions(std::move(opts), opts_));
41+
OptionsSpan span(bigtable_internal::MergeOptions(std::move(opts), opts_));
4342
return conn_->ExecuteQuery({std::move(bound_query)});
4443
}
4544

0 commit comments

Comments
 (0)