Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit a6c780c

Browse files
authored
Tidy up, especially BUILD deps. (#214)
1 parent 75e7e2f commit a6c780c

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

opencensus/common/internal/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ cc_library(
5454
name = "string_vector_hash",
5555
hdrs = ["string_vector_hash.h"],
5656
copts = DEFAULT_COPTS,
57+
deps = [":hash_mix"],
5758
)
5859

5960
# Tests

opencensus/common/internal/grpc/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ cc_test(
4040
copts = TEST_COPTS,
4141
deps = [
4242
":status",
43+
"@com_github_grpc_grpc//:grpc++",
4344
"@com_google_googletest//:gtest_main",
4445
],
4546
)

opencensus/common/internal/random.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ uint64_t Generator::Random64() {
2727
}
2828

2929
Random* Random::GetRandom() {
30-
static Random* global_random = new Random;
30+
static auto* const global_random = new Random;
3131
return global_random;
3232
}
3333

opencensus/common/internal/stats_object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#ifndef OPENCENSUS_COMMON_INTERNAL_STATS_OBJECT_H_
1616
#define OPENCENSUS_COMMON_INTERNAL_STATS_OBJECT_H_
1717

18-
#include <math.h>
19-
#include <stddef.h>
2018
#include <algorithm>
19+
#include <cmath>
20+
#include <cstddef>
2121
#include <cstdint>
2222
#include <iostream>
2323
#include <limits>

opencensus/context/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cc_library(
3636
deps = [
3737
"//opencensus/tags",
3838
"//opencensus/trace",
39+
"@com_google_absl//absl/strings",
3940
],
4041
)
4142

opencensus/stats/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cc_library(
2727
"internal/aggregation_window.h",
2828
"internal/set_aggregation_window.h",
2929
"stats.h",
30+
"stats_exporter.h",
3031
],
3132
copts = DEFAULT_COPTS,
3233
visibility = ["//visibility:public"],
@@ -116,6 +117,7 @@ cc_library(
116117
copts = DEFAULT_COPTS,
117118
deps = [
118119
":core",
120+
"//opencensus/tags",
119121
"@com_google_absl//absl/strings",
120122
"@com_google_absl//absl/time",
121123
],
@@ -201,7 +203,7 @@ cc_test(
201203
":core",
202204
":recording",
203205
":test_utils",
204-
"@com_google_absl//absl/types:optional",
206+
"//opencensus/tags",
205207
"@com_google_googletest//:gtest_main",
206208
],
207209
)

opencensus/trace/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ cc_test(
219219
copts = TEST_COPTS,
220220
deps = [
221221
":trace",
222-
"@com_google_absl//absl/synchronization",
222+
"@com_google_absl//absl/strings",
223223
"@com_google_googletest//:gtest_main",
224224
],
225225
)

0 commit comments

Comments
 (0)