forked from include-what-you-use/include-what-you-use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stl.public.imp
24 lines (23 loc) · 1.54 KB
/
stl.public.imp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# C++ Standard Library public include mappings
# Used by all STL implementations
[
# Note: make sure to sync this setting with iwyu_include_picker.cc
# The iostream .h files are confusing. Lots of private headers,
# which are handled above, but we also have public headers
# #including each other (eg <iostream> //includes <istream>). We
# are pretty forgiving: if a user specifies any public header, we
# generally don't require the others.
# ( cd /usr/crosstool/v12/gcc-4.3.1-glibc-2.3.6-grte/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/include/c++/4.3.1 && egrep '^ *# *include <(istream|ostream|iostream|fstream|sstream|streambuf|ios|iosfwd)>' *stream* ios | perl -nle 'm/^([^:]+).*[<"]([^>"]+)[>"]/ and print qq@ { "include": ["<$2>", "public", "<$1>", "public"] },@' | sort -u )
{ "include": ["<ios>", "public", "<istream>", "public"] },
{ "include": ["<ios>", "public", "<ostream>", "public"] },
{ "include": ["<iosfwd>", "public", "<ios>", "public"] },
{ "include": ["<iosfwd>", "public", "<streambuf>", "public"] },
{ "include": ["<istream>", "public", "<fstream>", "public"] },
{ "include": ["<istream>", "public", "<iostream>", "public"] },
{ "include": ["<istream>", "public", "<sstream>", "public"] },
{ "include": ["<ostream>", "public", "<fstream>", "public"] },
{ "include": ["<ostream>", "public", "<iostream>", "public"] },
{ "include": ["<ostream>", "public", "<istream>", "public"] },
{ "include": ["<ostream>", "public", "<sstream>", "public"] },
{ "include": ["<streambuf>", "public", "<ios>", "public"] },
]