stl-to-nothing.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # libc & stl common headers should be resolved to either
  2. # * system libc (e.g. nothing in our repo)
  3. # * system libc++ (e.g. nothing in our repo)
  4. # * libcxx
  5. # * musl
  6. # or some combination of them depending on the build flags.
  7. # We want musl to resolve itself without these sysincls, but its test must have them
  8. - source_filter: "^(?!contrib/libs/musl).*|^contrib/libs/musl/tests"
  9. includes:
  10. - complex.h
  11. - ctype.h
  12. - errno.h
  13. - float.h
  14. - inttypes.h
  15. - limits.h
  16. - locale.h
  17. - math.h
  18. - setjmp.h
  19. - stdbool.h
  20. - stddef.h
  21. - stdint.h
  22. - stdio.h
  23. - stdlib.h
  24. - string.h
  25. - tgmath.h
  26. - wchar.h
  27. - wctype.h
  28. - includes:
  29. - __config
  30. - __undef_macros
  31. - algorithm
  32. - any
  33. - array
  34. - atomic
  35. - bit
  36. - bitset
  37. - cassert
  38. - ccomplex
  39. - cctype
  40. - cerrno
  41. - cfenv
  42. - cfloat
  43. - charconv
  44. - chrono
  45. - cinttypes
  46. - ciso646
  47. - climits
  48. - clocale
  49. - cmath
  50. - codecvt
  51. - compare
  52. - complex
  53. - concepts
  54. - condition_variable
  55. - csetjmp
  56. - csignal
  57. - cstdarg
  58. - cstdbool
  59. - cstddef
  60. - cstdint
  61. - cstdio
  62. - cstdlib
  63. - cstring
  64. - ctgmath
  65. - ctime
  66. - cwchar
  67. - cwctype
  68. - cxxabi.h
  69. - deque
  70. - exception
  71. - filesystem
  72. - forward_list
  73. - fstream
  74. - functional
  75. - future
  76. - initializer_list
  77. - iomanip
  78. - ios
  79. - iosfwd
  80. - iostream
  81. - istream
  82. - iterator
  83. - limits
  84. - list
  85. - locale
  86. - map
  87. - memory
  88. - mutex
  89. - new
  90. - numeric
  91. - optional
  92. - ostream
  93. - queue
  94. - random
  95. - ratio
  96. - regex
  97. - scoped_allocator
  98. - set
  99. - shared_mutex
  100. - span
  101. - sstream
  102. - stack
  103. - stdexcept
  104. - streambuf
  105. - string
  106. - string_view
  107. - strstream
  108. - system_error
  109. - thread
  110. - tuple
  111. - typeindex
  112. - typeinfo
  113. - type_traits
  114. - unordered_map
  115. - unordered_set
  116. - use_ansi.h
  117. - utility
  118. - valarray
  119. - variant
  120. - vector
  121. - unwind.h:
  122. - contrib/libs/libunwind/include/unwind.h
  123. # Though these are headers provided by libcxx, we do not want to allow them to be included.
  124. # We are using non-existent filename to generate error instead, as there is no specific syntax for this case.
  125. - includes:
  126. - ext/hash_map: DO_NOT_INCLUDE_NON_STANDARD_EXT_HASH_MAP
  127. - ext/hash_set: DO_NOT_INCLUDE_NON_STANDARD_EXT_HASH_SET
  128. - experimental/any: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_ANY
  129. - experimental/chrono: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_CHRONO
  130. - experimental/numeric: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_NUMERIC
  131. - experimental/optional: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_OPTIONAL
  132. - experimental/ratio: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_RATIO
  133. - experimental/source_location: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_SOURCE_LOCATION
  134. - experimental/string_view: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_STRING_VIEW
  135. - experimental/system_error: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_SYSTEM_ERROR
  136. - experimental/tuple: DO_NOT_INCLUDE_NON_STANDARD_EXPERIMENTAL_TUPLE
  137. # TODO: there is no <corouine> in system stl. Disable this include upon its appearance
  138. - experimental/coroutine