aboutsummaryrefslogtreecommitdiffstats
path: root/build/sysincl/stl-to-nothing.yml
blob: 52bd76b009401f858b378aebc258954baa6e8da4 (plain) (blame)
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
# libc & stl common headers should be resolved to either
# * system libc   (e.g. nothing in our repo)
# * system libc++ (e.g. nothing in our repo)
# * libcxx
# * musl
# or some combination of them depending on the build flags.

# We want musl to resolve itself without these sysincls, but its test must have them
- source_filter: "^(?!contrib/libs/musl).*|^contrib/libs/musl/tests"
  includes:
  - complex.h
  - ctype.h
  - errno.h
  - float.h
  - inttypes.h
  - limits.h
  - locale.h
  - math.h
  - setjmp.h
  - stdbool.h
  - stddef.h
  - stdint.h
  - stdio.h
  - stdlib.h
  - string.h
  - tgmath.h
  - wchar.h
  - wctype.h

- includes:
  - __config
  - __undef_macros
  - algorithm
  - any
  - array
  - atomic
  - bit
  - bitset
  - cassert
  - ccomplex
  - cctype
  - cerrno
  - cfenv
  - cfloat
  - charconv
  - chrono
  - cinttypes
  - ciso646
  - climits
  - clocale
  - cmath
  - codecvt
  - compare
  - complex
  - concepts
  - condition_variable
  - coroutine
  - csetjmp
  - csignal
  - cstdarg
  - cstdbool
  - cstddef
  - cstdint
  - cstdio
  - cstdlib
  - cstring
  - ctgmath
  - ctime
  - cwchar
  - cwctype
  - cxxabi.h
  - deque
  - exception
  - filesystem
  - forward_list
  - fstream
  - functional
  - future
  - initializer_list
  - iomanip
  - ios
  - iosfwd
  - iostream
  - istream
  - iterator
  - limits
  - list
  - locale
  - map
  - memory
  - mutex
  - new
  - numeric
  - optional
  - ostream
  - queue
  - random
  - ranges
  - ratio
  - regex
  - scoped_allocator
  - set
  - shared_mutex
  - span
  - sstream
  - stack
  - stdexcept
  - streambuf
  - string
  - string_view
  - strstream
  - system_error
  - thread
  - tuple
  - typeindex
  - typeinfo
  - type_traits
  - unordered_map
  - unordered_set
  - use_ansi.h
  - utility
  - valarray
  - variant
  - vector
  - version
  - unwind.h:
    - contrib/libs/libunwind/include/unwind.h


# Though these are headers provided by libcxx, we do not want to allow them to be included.
# We are using non-existent filename to generate error instead, as there is no specific syntax for this case.
- includes:
  - ext/hash_map:                       DO_NOT_INCLUDE_NON_STANDARD_EXT_HASH_MAP
  - ext/hash_set:                       DO_NOT_INCLUDE_NON_STANDARD_EXT_HASH_SET
  - experimental/any:                   DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_ANY
  - experimental/chrono:                DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_CHRONO
  - experimental/filesystem:            DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_FILESYSTEM
  - experimental/numeric:               DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_NUMERIC
  - experimental/optional:              DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_OPTIONAL
  - experimental/ratio:                 DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_RATIO
  - experimental/source_location:       DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_SOURCE_LOCATION
  - experimental/string_view:           DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_STRING_VIEW
  - experimental/system_error:          DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_SYSTEM_ERROR
  - experimental/tuple:                 DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_TUPLE

  # TODO: Forbid including <experimental/coroutine> upon migration to clang14
  - experimental/coroutine