Skip to content

Commit 545f9f4

Browse files
authored
[CodeHealth] fix include-what-you-use, part 8 (#3465)
1 parent 98e747f commit 545f9f4

File tree

124 files changed

+404
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+404
-141
lines changed

.github/workflows/iwyu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
readonly WARNING_COUNT=`grep -c "include-what-you-use reported diagnostics:" iwyu.log`
8888
echo "include-what-you-use reported ${WARNING_COUNT} warning(s)"
8989
# Acceptable limit, to decrease over time down to 0
90-
readonly WARNING_LIMIT=122
90+
readonly WARNING_LIMIT=0
9191
# FAIL the build if WARNING_COUNT > WARNING_LIMIT
9292
if [ $WARNING_COUNT -gt $WARNING_LIMIT ] ; then
9393
exit 1

api/test/common/spinlock_benchmark.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <benchmark/benchmark.h>
5-
#include <algorithm>
65
#include <atomic>
76
#include <cstdint>
87
#include <thread>

api/test/common/string_util_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <string.h>
66

77
#include <opentelemetry/common/string_util.h>
8+
#include "opentelemetry/nostd/string_view.h"
89

910
// ------------------------- StringUtil class tests ---------------------------------
1011

api/test/context/context_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdint.h>
66
#include <map>
77
#include <string>
8+
#include <utility>
89

910
#include "opentelemetry/context/context.h"
1011
#include "opentelemetry/context/context_value.h"

api/test/context/propagation/composite_propagator_test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <gtest/gtest.h>
55
#include <stdint.h>
6-
#include <algorithm>
76
#include <map>
87
#include <string>
98
#include <utility>

api/test/logs/logger_benchmark.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <benchmark/benchmark.h>
55
#include <stdint.h>
6-
#include <algorithm>
76
#include <condition_variable>
87
#include <cstddef>
98
#include <functional>

api/test/plugin/dynamic_load_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <gtest/gtest.h>
5+
#include <memory>
56
#include <string>
67

78
#include "opentelemetry/plugin/dynamic_load.h"

api/test/singleton/component_a.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include "opentelemetry/nostd/shared_ptr.h"
5+
#include "opentelemetry/nostd/string_view.h"
56
#include "opentelemetry/trace/provider.h"
67
#include "opentelemetry/trace/scope.h"
78
#include "opentelemetry/trace/tracer.h"

api/test/singleton/component_b.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include "opentelemetry/nostd/shared_ptr.h"
5+
#include "opentelemetry/nostd/string_view.h"
56
#include "opentelemetry/trace/provider.h"
67
#include "opentelemetry/trace/scope.h"
78
#include "opentelemetry/trace/tracer.h"

api/test/singleton/component_c.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include "opentelemetry/nostd/shared_ptr.h"
5+
#include "opentelemetry/nostd/string_view.h"
56
#include "opentelemetry/trace/provider.h"
67
#include "opentelemetry/trace/scope.h"
78
#include "opentelemetry/trace/tracer.h"

0 commit comments

Comments
 (0)