From 36f153e6d190ecb8363329ba2bfd6f0752112e39 Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Thu, 12 Sep 2024 10:53:32 +0200 Subject: [PATCH] Apply include-cleaner to api direct files (2/2). This is a follow up for https://webrtc-review.googlesource.com/c/src/+/360680. * Adding some missing include. * Adding a IWYU pragma to force keeping an include. Note that I've added the CQ bot 'iwyu_verifier' to ensure the repo stays clean. It is still work in progress and it currently needs to be triggered manually. FYI I used these command line to run iwyu: > for i in api/*.cc; do ./tools_webrtc/iwyu/apply-include-cleaner $i; done > for i in api/*.h; do ./tools_webrtc/iwyu/apply-include-cleaner $i; done Change-Id: Ie7036d08edbb6884f2b35eb9d69646757d662390 Bug: webrtc:42226242 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/362440 Reviewed-by: Harald Alvestrand Commit-Queue: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#43054} --- api/audio_options.cc | 1 + api/data_channel_interface.cc | 1 + api/jsep.cc | 1 + api/rtp_transceiver_interface.cc | 2 ++ api/sctp_transport_interface.cc | 1 + api/webrtc_key_value_config.h | 2 +- 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/api/audio_options.cc b/api/audio_options.cc index 8d231330dc..a8929b9734 100644 --- a/api/audio_options.cc +++ b/api/audio_options.cc @@ -10,6 +10,7 @@ #include "api/audio_options.h" +#include #include #include "api/array_view.h" diff --git a/api/data_channel_interface.cc b/api/data_channel_interface.cc index 05c7a1a2c7..062a592fcf 100644 --- a/api/data_channel_interface.cc +++ b/api/data_channel_interface.cc @@ -11,6 +11,7 @@ #include "api/data_channel_interface.h" #include +#include #include #include "absl/functional/any_invocable.h" diff --git a/api/jsep.cc b/api/jsep.cc index c35d9bb227..894ef58f40 100644 --- a/api/jsep.cc +++ b/api/jsep.cc @@ -11,6 +11,7 @@ #include "api/jsep.h" #include +#include #include #include diff --git a/api/rtp_transceiver_interface.cc b/api/rtp_transceiver_interface.cc index a5e53f53d2..dea2e9c1f3 100644 --- a/api/rtp_transceiver_interface.cc +++ b/api/rtp_transceiver_interface.cc @@ -10,6 +10,8 @@ #include "api/rtp_transceiver_interface.h" +#include + #include "api/rtc_error.h" #include "api/rtp_transceiver_direction.h" #include "rtc_base/checks.h" diff --git a/api/sctp_transport_interface.cc b/api/sctp_transport_interface.cc index 5ca57f1783..8126efa60e 100644 --- a/api/sctp_transport_interface.cc +++ b/api/sctp_transport_interface.cc @@ -10,6 +10,7 @@ #include "api/sctp_transport_interface.h" +#include #include #include "api/dtls_transport_interface.h" diff --git a/api/webrtc_key_value_config.h b/api/webrtc_key_value_config.h index e3cac59698..0648a7f593 100644 --- a/api/webrtc_key_value_config.h +++ b/api/webrtc_key_value_config.h @@ -12,6 +12,6 @@ // TODO(bugs.webrtc.org/10335): Remove once all migrated to // api/field_trials_view.h -#include "api/field_trials_view.h" +#include "api/field_trials_view.h" // IWYU pragma: keep #endif // API_WEBRTC_KEY_VALUE_CONFIG_H_