forked from martis42/depend_on_what_you_use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
std_header.py
167 lines (165 loc) · 2.99 KB
/
std_header.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
"""
List is based on https://en.cppreference.com/w/cpp/header.
The content of the website has been copied into a file (plain ctrl + c)
and then extract_std_headers.py has been executed on the file.
The list is a superset of all headers, no matter in which standard they have been introduced
or if they are already removed. If you require a list tailored to a specific standard,
you have to define it yourself and provide it to the tool through the CLI.
"""
# extracted 2022.01.03
STD_HEADER = {
# concepts
"concepts",
# coroutines
"coroutine",
# utilities - generic
"any",
"bitset",
"chrono",
"compare",
"csetjmp",
"csignal",
"cstdarg",
"cstddef",
"cstdlib",
"ctime",
"functional",
"initializer_list",
"optional",
"source_location",
"stacktrace",
"tuple",
"type_traits",
"typeindex",
"typeinfo",
"utility",
"variant",
"version",
# utilities - dynamic memory management
"memory",
"memory_resource",
"new",
"scoped_allocator",
# utilities - numeric limits
"cfloat",
"cinttypes",
"climits",
"cstdint",
"limits",
# utilities - error handling
"cassert",
"cerrno",
"exception",
"stdexcept",
"system_error",
# strings
"cctype",
"charconv",
"cstring",
"cuchar",
"cwchar",
"cwctype",
"format",
"string",
"string_view",
# containers
"array",
"deque",
"forward_list",
"list",
"map",
"queue",
"set",
"span",
"stack",
"unordered_map",
"unordered_set",
"vector",
# iterators
"iterator",
# ranges
"ranges",
# algorithms
"algorithm",
"execution",
# numerics
"bit",
"cfenv",
"cmath",
"complex",
"numbers",
"numeric",
"random",
"ratio",
"valarray",
# localization
"clocale",
"codecvt",
"locale",
# input/output
"cstdio",
"fstream",
"iomanip",
"ios",
"iosfwd",
"iostream",
"istream",
"ostream",
"spanstream",
"sstream",
"streambuf",
"strstream",
"syncstream",
# filesystem
"filesystem",
# regular expression
"regex",
# atomic operations
"atomic",
# thread support
"barrier",
"condition_variable",
"future",
"latch",
"mutex",
"semaphore",
"shared_mutex",
"stop_token",
"thread",
# C compatibility headers
"assert.h",
"ctype.h",
"errno.h",
"fenv.h",
"float.h",
"inttypes.h",
"limits.h",
"locale.h",
"math.h",
"setjmp.h",
"signal.h",
"stdarg.h",
"stddef.h",
"stdint.h",
"stdio.h",
"stdlib.h",
"string.h",
"time.h",
"uchar.h",
"wchar.h",
"wctype.h",
# special C compatibility headers
"stdatomic.h",
# Empty C headers
"ccomplex",
"complex.h",
"ctgmath",
"tgmath.h",
# Meaningless C headers
"ciso646",
"cstdalign",
"cstdbool",
"iso646.h",
"stdalign.h",
"stdbool.h",
}