xref: /aosp_15_r20/external/webrtc/tools_webrtc/iwyu/mappings.imp (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker#
2*d9f75844SAndroid Build Coastguard Worker# Mappings file for IWYU in webrtc
3*d9f75844SAndroid Build Coastguard Worker#
4*d9f75844SAndroid Build Coastguard Worker# Documentation of syntax:
5*d9f75844SAndroid Build Coastguard Worker# https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
6*d9f75844SAndroid Build Coastguard Worker#
7*d9f75844SAndroid Build Coastguard Worker# Remember that it needs include strings INCLUDING <> or "" inside the quotes.
8*d9f75844SAndroid Build Coastguard Worker#
9*d9f75844SAndroid Build Coastguard Worker[
10*d9f75844SAndroid Build Coastguard Worker# Redirect to have gmock and gtest includes under our control
11*d9f75844SAndroid Build Coastguard Worker{ include: ['"gmock/gmock.h"', "private", '"test/gmock.h"', "public"] },
12*d9f75844SAndroid Build Coastguard Worker{ include: ['"gtest/gtest.h"', "private", '"test/gtest.h"', "public"] },
13*d9f75844SAndroid Build Coastguard Worker
14*d9f75844SAndroid Build Coastguard Worker# rtc_base/containers internal defs
15*d9f75844SAndroid Build Coastguard Worker{ include: ['"rtc_base/containers/flat_tree.h"', "private", '"rtc_base/containers/flat_set.h"', "public"] },
16*d9f75844SAndroid Build Coastguard Worker
17*d9f75844SAndroid Build Coastguard Worker# Revectoring of JSON
18*d9f75844SAndroid Build Coastguard Worker{ include: ['"json/reader.h"', "private", '"rtc_base/strings/json.h"', "public"] },
19*d9f75844SAndroid Build Coastguard Worker{ include: ['"json/value.h"', "private", '"rtc_base/strings/json.h"', "public"] },
20*d9f75844SAndroid Build Coastguard Worker
21*d9f75844SAndroid Build Coastguard Worker# LIBSRTP overrides
22*d9f75844SAndroid Build Coastguard Worker{ include: ['"rdbx.h"', "private", '"third_party/libsrtp/include/srtp_priv.h"', "public"] },
23*d9f75844SAndroid Build Coastguard Worker{ include: ['"auth.h"', "private", '"third_party/libsrtp/include/srtp_priv.h"', "public"] },
24*d9f75844SAndroid Build Coastguard Worker
25*d9f75844SAndroid Build Coastguard Worker# pthread internals
26*d9f75844SAndroid Build Coastguard Worker{ include: ['<bits/pthread_types.h>', "private", '<pthread.h>', "public"] },
27*d9f75844SAndroid Build Coastguard Worker
28*d9f75844SAndroid Build Coastguard Worker# Needed to agree with presubmit tests for includes (and not include <iosfwd>)
29*d9f75844SAndroid Build Coastguard Worker{ symbol: ["std::string", "public", "<string>", "public"] },
30*d9f75844SAndroid Build Coastguard Worker{ symbol: ["std::move", "public", "<utility>", "public"] },
31*d9f75844SAndroid Build Coastguard Worker{ symbol: ["std::make_unique", "public", "<memory>", "public"] },
32*d9f75844SAndroid Build Coastguard Worker{ symbol: ["std::unique_ptr", "public", "<memory>", "public"] },
33*d9f75844SAndroid Build Coastguard Worker# Needed to avoid <iosfwd>
34*d9f75844SAndroid Build Coastguard Worker{ symbol: ["std::ostringstream", "public", "<sstream>", "public"] },
35*d9f75844SAndroid Build Coastguard Worker
36*d9f75844SAndroid Build Coastguard Worker{ ref: "../../buildtools/third_party/libc++/trunk/include/libcxx.imp" },
37*d9f75844SAndroid Build Coastguard Worker]
38*d9f75844SAndroid Build Coastguard Worker
39