Harald Alvestrand c24a2189d7 Update IWYU tool with a mapping file
Also apply IWYU to all .cc files in pc/, and correct BUILD file to match.
Note: Some files came out wrong when iwyu was applied. These are not included.

Bug: none
Change-Id: Ib5ea46b8fcc505414d0447cca7218ad3afc2e321
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/252280
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36064}
2022-02-24 11:05:06 +00:00

32 lines
1.4 KiB
Plaintext

#
# Mappings file for IWYU in webrtc
#
# Documentation of syntax:
# https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
#
# Remember that it needs include strings INCLUDING <> or "" inside the quotes.
#
[
# Redirect to have gmock and gtest includes under our control
{ include: ['"gmock/gmock.h"', "private", '"test/gmock.h"', "public"] },
{ include: ['"gtest/gtest.h"', "private", '"test/gtest.h"', "public"] },
# rtc_base/containers internal defs
{ include: ['"rtc_base/containers/flat_tree.h"', "private", '"rtc_base/containers/flat_set.h"', "public"] },
# Revectoring of JSON
{ include: ['"json/reader.h"', "private", '"rtc_base/strings/json.h"', "public"] },
{ include: ['"json/value.h"', "private", '"rtc_base/strings/json.h"', "public"] },
# LIBSRTP overrides
{ include: ['"rdbx.h"', "private", '"third_party/libsrtp/include/srtp_priv.h"', "public"] },
{ include: ['"auth.h"', "private", '"third_party/libsrtp/include/srtp_priv.h"', "public"] },
# Needed to agree with presubmit tests for includes (and not include <iosfwd>)
{ symbol: ["std::string", "public", "<string>", "public"] },
{ symbol: ["std::move", "public", "<utility>", "public"] },
{ symbol: ["std::make_unique", "public", "<memory>", "public"] },
{ symbol: ["std::unique_ptr", "public", "<memory>", "public"] },
# Needed to avoid <iosfwd>
{ symbol: ["std::ostringstream", "public", "<sstream>", "public"] },
]