misc.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. - includes:
  2. # Valgrind PEERDIR and ADDINCL are added only in --valgrind builds,
  3. # but we should resolve headers anyway.
  4. - valgrind/callgrind.h
  5. - valgrind/memcheck.h
  6. - valgrind/valgrind.h
  7. # DB2_ODBC_CLI
  8. - sqlcli1.h
  9. - includes:
  10. - gelf.h: contrib/restricted/libelf/include/libelf/gelf.h
  11. - libelf.h: contrib/restricted/libelf/include/libelf/libelf.h
  12. - libelf/libelf.h: contrib/restricted/libelf/include/libelf/libelf.h
  13. - libelf/sys_elf.h: contrib/restricted/libelf/include/libelf/sys_elf.h
  14. # We have lots of ADDINCLs to contrib/libs/libiconv all around the repo
  15. # so we need to add it to sysincl for consistent resolving.
  16. # We can go the other way here and remove iconv.h from all sysincl configs
  17. # and try to fix all places where we really need iconv.h from libc
  18. # Btw: seems that this ADDINCL should be made global and removed from projects
  19. # that use this header
  20. - includes:
  21. - iconv.h: contrib/libs/libiconv/include/iconv.h
  22. - includes:
  23. - cudnn.h: contrib/libs/nvidia/cudnn/cudnn.h
  24. # _cgo_export.h is generated into build dir of go package which uses cgo
  25. # and we are unable to resolve it correctly to whcih build dir to resolve
  26. # in the case when tests are also built for this package
  27. - includes:
  28. - _cgo_export.h
  29. # Resolve jni.h from swig/Lib/java/javahead.swg when building non-java .swg
  30. # since they do not peerdir contrib/libs/jdk.
  31. # Resolve Python.h from swig/Lib/python/pyruntime.swg when building non-python .swg
  32. # since they do not peerdir contrib/libs/python.
  33. - source_filter: "[.]swg([.](h|c(c|pp|xx)?))?$"
  34. includes:
  35. - jni.h: contrib/libs/jdk/include/jni.h
  36. - Python.h: contrib/libs/python/Include/Python.h
  37. - source_filter: "^contrib/libs/jdk/include/jni[.]h$"
  38. includes:
  39. - jni_md.h:
  40. - contrib/libs/jdk/include/darwin/jni_md.h
  41. - contrib/libs/jdk/include/linux/jni_md.h
  42. - contrib/libs/jdk/include/win32/jni_md.h
  43. # libunistring, libidn and libidn2
  44. # have its own libc header wrappers that are added to ADDINCL
  45. # and need to be added here for consistensy between ADDINCL and sysincl resolving.
  46. # Btw: we don't parse include_next, so we might lose real dependency to musl,
  47. # but sysincl resolving will save us here, as it will resolve to both of them.
  48. - source_filter: "^contrib/libs/libunistring"
  49. includes:
  50. - alloca.h: contrib/libs/libunistring/alloca.h
  51. - langinfo.h: contrib/libs/libunistring/langinfo.h
  52. - minmax.h: contrib/libs/libunistring/minmax.h
  53. - source_filter: "^contrib/libs/libidn/"
  54. includes:
  55. - alloca.h: contrib/libs/libidn/gl/alloca.h
  56. - error.h: contrib/libs/libidn/gl/error.h
  57. - iconv.h: contrib/libs/libidn/lib/gl/iconv.h
  58. - source_filter: "^contrib/libs/libidn2/"
  59. includes:
  60. - alloca.h: contrib/libs/libidn2/gl/alloca.h
  61. - error.h: contrib/libs/libidn2/gl/error.h
  62. # Same as libunistring - lftp has own libc header wrappers/replacements.
  63. # However here we have GLOBAL ADDINCL to contrib/libs/lftp{,/trio,/lib}
  64. # that can poison resolving in PEERDIRing projects.
  65. # Fortunately lftp is used only in contrib/tools/lftp.
  66. # Probably we should add PEERDIR restriction rule to it.
  67. - source_filter: "^contrib/libs/lftp"
  68. includes:
  69. - alloca.h: contrib/libs/lftp/alloca.h
  70. - error.h: contrib/libs/lftp/lib/error.h
  71. - fnmatch.h: contrib/libs/lftp/lib/fnmatch.h
  72. - regex.h: contrib/libs/lftp/lib/regex.h
  73. - sys/socket.h: contrib/libs/lftp/lib/sys/socket.h
  74. - sys/stat.h: contrib/libs/lftp/lib/sys/stat.h
  75. - sys/time.h: contrib/libs/lftp/lib/sys/time.h
  76. # Another sysincl/addincl clash. Here we also have GLOBAL ADDINCL that will
  77. # produce sysincl/addincl mismatch configure errors when someone writes
  78. # #include <math.h> and enables USE_ARCADIA_LIBM. Now we have no instances of this.
  79. - source_filter: "^contrib/libs/libm/.*\\.c"
  80. includes:
  81. - complex.h: contrib/libs/libm/include/complex.h
  82. - math.h: contrib/libs/libm/include/math.h
  83. # Some more sysincl/addincl clashes.
  84. - source_filter: "^contrib/tools/bison/(bison|gnulib|m4)/src"
  85. includes:
  86. - error.h: contrib/tools/bison/gnulib/src/error.h
  87. - fcntl.h: contrib/tools/bison/gnulib/platform/posix/fcntl.h
  88. - getopt.h: contrib/tools/bison/gnulib/platform/posix/getopt.h
  89. - obstack.h: contrib/tools/bison/gnulib/src/obstack.h
  90. - regex.h: contrib/tools/bison/gnulib/src/regex.h
  91. - system.h
  92. - unlocked-io.h: contrib/tools/bison/gnulib/src/unlocked-io.h
  93. - source_filter: "^contrib/tools/make"
  94. includes:
  95. - fnmatch.h: contrib/tools/make/glob/fnmatch.h
  96. - glob.h: contrib/tools/make/glob/glob.h
  97. - source_filter: "^contrib/tools/tre"
  98. includes:
  99. - regex.h: contrib/tools/tre/lib/regex.h
  100. - source_filter: "^contrib/libs/cppkafka"
  101. includes:
  102. - error.h: contrib/libs/cppkafka/include/cppkafka/error.h
  103. - source_filter: "^contrib/libs/clang12-rt"
  104. includes:
  105. - xray/xray_interface.h: contrib/libs/clang12-rt/include/xray/xray_interface.h
  106. - source_filter: "^contrib/libs/clang14-rt"
  107. includes:
  108. - xray/xray_interface.h: contrib/libs/clang14-rt/include/xray/xray_interface.h
  109. - source_filter: "^contrib/libs/llvm"
  110. includes:
  111. - plugin-api.h # GNU linker plugin API.
  112. - source_filter: "^contrib/libs/musl"
  113. includes:
  114. - atomic.h: contrib/libs/musl/src/internal/atomic.h
  115. - bits/fenv.h: contrib/libs/musl/arch/x86_64/bits/fenv.h
  116. - source_filter: "^contrib/libs/zbar"
  117. includes:
  118. - error.h: contrib/libs/zbar/zbar/error.h
  119. - source_filter: "^contrib/libs/curl"
  120. includes:
  121. - http.h: contrib/libs/curl/lib/http.h
  122. - inet_ntop.h: contrib/libs/curl/lib/inet_ntop.h
  123. - share.h: contrib/libs/curl/lib/share.h
  124. - source_filter: "^contrib/libs/zeromq"
  125. includes:
  126. - atomic.h: contrib/libs/zeromq/missing_includes/atomic.h
  127. - Mstcpip.h: contrib/libs/zeromq/missing_includes/Mstcpip.h
  128. - source_filter: "^contrib/restricted/openal-soft"
  129. includes:
  130. - atomic.h: contrib/restricted/openal-soft/common/atomic.h
  131. - source_filter: "^contrib/libs/ffmpeg-3/"
  132. includes:
  133. - fontconfig/fontconfig.h
  134. - fribidi.h
  135. - stdatomic.h: contrib/libs/ffmpeg-3/compat/atomics/win32/stdatomic.h
  136. - atomic.h: contrib/libs/ffmpeg-3/libavutil/atomic.h
  137. - source_filter: "^contrib/libs/ffmpeg-3.4.1/"
  138. includes:
  139. - fontconfig/fontconfig.h
  140. - fribidi.h
  141. - stdatomic.h: contrib/libs/ffmpeg-3.4.1/compat/atomics/win32/stdatomic.h
  142. - atomic.h: contrib/libs/ffmpeg-3.4.1/libavutil/atomic.h
  143. - source_filter: "^contrib/libs/glog"
  144. includes:
  145. - port.h: contrib/libs/glog/missing_includes/port.h
  146. - source_filter: "^contrib/libs/postgresql"
  147. includes:
  148. - port.h: contrib/libs/postgresql/src/include/port.h
  149. - source_filter: "^contrib/(deprecated/onednn|libs/intel/onednn)"
  150. includes:
  151. - mkl_cblas.h: contrib/libs/intel/mkl/include/mkl_cblas.h
  152. - mkl_version.h: contrib/libs/intel/mkl/include/mkl_version.h
  153. - mkl_vml_defines.h: contrib/libs/intel/mkl/include/mkl_vml_defines.h
  154. - mkl_vml_functions.h: contrib/libs/intel/mkl/include/mkl_vml_functions.h
  155. - source_filter: "^contrib/libs/nsync"
  156. includes:
  157. - atomic.h: contrib/libs/nsync/platform/c++11/atomic.h
  158. - source_filter: "^contrib/python/numpy/py3"
  159. includes:
  160. - numpy/random.pxd
  161. - source_filter: "^contrib/tools/python/src/Objects/exceptions.c"
  162. includes:
  163. - errmap.h: contrib/tools/python/src/PC/errmap.h
  164. - source_filter: "^contrib/libs/(speex|tf)"
  165. includes:
  166. - mkl.h: contrib/libs/intel/mkl/include/mkl.h
  167. # deprecated contrib with ADDINCL to libintl
  168. - source_filter: "^contrib/(deprecated/glib/glib|libs/gdk-pixbuf)"
  169. includes:
  170. - libintl.h: contrib/deprecated/libintl/libintl.h
  171. - source_filter: "^contrib/libs/poco/Data/ODBC"
  172. includes:
  173. - sql.h: contrib/libs/unixodbc/include/sql.h
  174. - sqlext.h: contrib/libs/unixodbc/include/sqlext.h
  175. - sqltypes.h: contrib/libs/unixodbc/include/sqltypes.h
  176. - sqlucode.h: contrib/libs/unixodbc/include/sqlucode.h
  177. - source_filter: "^contrib/libs/icu"
  178. includes:
  179. - util.h: contrib/libs/icu/common/util.h
  180. - source_filter: "^contrib/tools/yasm"
  181. includes:
  182. - util.h: contrib/tools/yasm/util.h
  183. - source_filter: "^contrib/libs/libgit2"
  184. includes:
  185. - util.h: contrib/libs/libgit2/src/util.h
  186. - source_filter: "^contrib/libs/nodejs_12"
  187. includes:
  188. - util.h: contrib/libs/nodejs_12/src/util.h
  189. - source_filter: "^contrib/libs/numa"
  190. includes:
  191. - util.h: contrib/libs/numa/internal/util.h
  192. - source_filter: "^contrib/libs/systemd"
  193. includes:
  194. - util.h: contrib/libs/systemd/src/basic/util.h
  195. - source_filter: "^contrib/libs/nvidia/nccl"
  196. includes:
  197. - socket.h: contrib/libs/nvidia/nccl/src/include/socket.h
  198. - source_filter: "^contrib/libs/tf/tensorflow"
  199. includes:
  200. - cuda.h: contrib/libs/tf/tensorflow/core/platform/cuda.h
  201. # unused legacy include in boost
  202. - source_filter: "^contrib/restricted/boost"
  203. includes:
  204. - fstream.h
  205. - ../include/fenv.h
  206. - source_filter: "^contrib/restricted/boost/stacktrace/include/boost/stacktrace/detail"
  207. includes:
  208. - backtrace.h: contrib/libs/backtrace/backtrace.h
  209. # windows sdk includes that we do not want to apply for whole arcadia
  210. - source_filter: "^contrib"
  211. includes:
  212. - process.h
  213. - source_filter: "^contrib/tools/tpce-benchmark"
  214. includes:
  215. - sql.h
  216. - sqlext.h
  217. - sqltypes.h
  218. - sqlucode.h
  219. - source_filter: "^contrib/libs/libmemcached"
  220. includes:
  221. - sasl/sasl.h
  222. - sasl/saslutil.h
  223. - source_filter: "^contrib/libs/(apache/apr|httpd|llvm)"
  224. includes:
  225. - uuid.h
  226. - uuid/uuid.h
  227. - source_filter: "^contrib/libs/(kenlm|libxml|re2|sqlite3)"
  228. includes:
  229. - unicode/ucnv.h
  230. - unicode/ucol.h
  231. - unicode/uniset.h
  232. - unicode/unistr.h
  233. - unicode/ustring.h
  234. - unicode/utf16.h
  235. - unicode/utypes.h
  236. - unicode/uversion.h
  237. - source_filter: "^contrib/deprecated/glib"
  238. includes:
  239. - configmake.h
  240. - source_filter: "^contrib/libs/authparser"
  241. includes:
  242. - settings.h
  243. - source_filter: "^contrib/libs/ceres-solver"
  244. includes:
  245. - tbb/tbb_stddef.h
  246. - source_filter: "^contrib/libs/deprecated"
  247. includes:
  248. - hdf5.h
  249. - source_filter: "^contrib/libs/freetype"
  250. includes:
  251. - hb-ot.h
  252. - hb-ft.h
  253. - hb.h
  254. - source_filter: "^contrib/libs/httpd"
  255. includes:
  256. - nginx.h
  257. - ngx_config.h
  258. - ngx_core.h
  259. - ngx_http.h
  260. - ngx_log.h
  261. - source_filter: "^contrib/libs/leptonica-1.70"
  262. includes:
  263. - gif_lib.h
  264. - webp/decode.h
  265. - webp/encode.h
  266. - source_filter: "^contrib/libs/libpcap"
  267. includes:
  268. - strerror.h
  269. - source_filter: "^contrib/libs/libxml"
  270. includes:
  271. - lzma.h
  272. - win32config.h
  273. - source_filter: "^contrib/libs/mod_perl2"
  274. includes:
  275. - config.h
  276. - source_filter: "^contrib/libs/(apache/apr|httpd|openssl)"
  277. includes:
  278. - netinet/sctp.h
  279. - source_filter: "^contrib/libs/subversion"
  280. includes:
  281. - magic.h
  282. - xmlparse.h
  283. - source_filter: "^contrib/python/scipy"
  284. includes:
  285. - matrix.h
  286. - source_filter: "^contrib/python/uwsgi"
  287. includes:
  288. - libxml/parser.h
  289. - libxml/tree.h
  290. - uuid/uuid.h
  291. - source_filter: "^contrib/tools/python"
  292. includes:
  293. - ioctl.h
  294. - utils.h
  295. - source_filter: "^(contrib/libs/cxxsupp/openmp|catboost/cuda/cuda_lib)"
  296. includes:
  297. - hwloc.h
  298. - hwloc/cudart.h
  299. - source_filter: "^contrib/libs/(deprecated|tf)"
  300. includes:
  301. - cblas.h
  302. - source_filter: "^contrib/libs/(aws-sdk-cpp|c-ares|proj)"
  303. includes:
  304. - jni.h
  305. - source_filter: "^contrib/(libs/(ffmpeg-3|kenlm|kyotocabinet)|tools/ag)"
  306. includes:
  307. - lzma.h
  308. - source_filter: "^contrib/libs/(kyotocabinet|minilzo)"
  309. includes:
  310. - lzo/lzo1x.h
  311. - source_filter: "^contrib/libs/(gtest|libpng|opencv)"
  312. includes:
  313. - mem.h
  314. - source_filter: "^contrib/libs/(authparser|libcoro-perl|libev-perl|libevent-perl)"
  315. includes:
  316. - patchlevel.h
  317. - source_filter: "^metrika/uatraits"
  318. includes:
  319. - note.h
  320. - could_not_find_Perl_patchlevel.h
  321. - patchlevel.h
  322. - source_filter: "^contrib/tools/watchman"
  323. includes:
  324. - pcre.h
  325. - source_filter: "^contrib/libs/(freetype|leptonica-1.70|libtheora|zbar)"
  326. includes:
  327. - png.h
  328. - source_filter: "^(contrib/restricted/boost/boost/mpi|catboost/cuda/cuda_lib/mpi)"
  329. includes:
  330. - mpi.h
  331. - source_filter: "^contrib/libs/libf2c"
  332. includes:
  333. - local.h
  334. - source_filter: "^contrib/libs/libpq"
  335. includes:
  336. - local.h
  337. - source_filter: "^contrib/libs/breakpad"
  338. includes:
  339. - stab.h
  340. - source_filter: "^contrib/tools/fluent-bit"
  341. includes:
  342. - backtrace.h: contrib/libs/backtrace/backtrace.h
  343. - source_filter: "^contrib/restricted/libelf"
  344. includes:
  345. - byteswap.h: contrib/restricted/libelf/lib/byteswap.h
  346. - gelf.h: contrib/restricted/libelf/lib/gelf.h
  347. - libelf.h: contrib/restricted/libelf/lib/libelf.h
  348. - nlist.h: contrib/restricted/libelf/lib/nlist.h
  349. - sys_elf.h: contrib/restricted/libelf/lib/sys_elf.h
  350. - source_filter: "^contrib/libs/dpdk/"
  351. includes:
  352. - process.h: contrib/libs/dpdk/drivers/bus/dpaa/include/process.h
  353. - source_filter: "^contrib/libs/dpdk_arm64/"
  354. includes:
  355. - process.h: contrib/libs/dpdk_arm64/drivers/bus/dpaa/include/process.h
  356. - source_filter: "^contrib/libs/usrsctp/"
  357. includes:
  358. - netinet/sctp_uio.h: contrib/libs/usrsctp/usrsctplib/netinet/sctp_uio.h
  359. - source_filter: "^contrib/libs/libsrtp/"
  360. includes:
  361. - alloc.h: contrib/libs/libsrtp/crypto/include/alloc.h
  362. - err.h: contrib/libs/libsrtp/crypto/include/err.h
  363. - stat.h: contrib/libs/libsrtp/crypto/include/stat.h
  364. - source_filter: "^contrib/restricted/openal-soft"
  365. includes:
  366. - threads.h: contrib/restricted/openal-soft/common/threads.h
  367. - source_filter: "^contrib/python/pymqi"
  368. includes:
  369. # IBM MQ
  370. - cmqc.h
  371. - cmqxc.h
  372. - cmqcfc.h
  373. - cmqbc.h
  374. - source_filter: "^contrib/libs/h3"
  375. includes:
  376. - alloc.h: contrib/libs/h3/h3lib/include/alloc.h
  377. - source_filter: "^cloud/iam/token_agent/daemon"
  378. includes:
  379. - contrib/libs/grpc/include/grpcpp/impl/codegen/server_context_impl.h
  380. - source_filter: "^contrib/libs/libyang"
  381. includes:
  382. - in.h: contrib/libs/libyang/libyang/in.h
  383. - source_filter: "^contrib/restricted/noc/frr"
  384. includes:
  385. - bfd.h: contrib/restricted/noc/frr/lib/bfd.h
  386. - getopt.h: contrib/restricted/noc/frr/lib/getopt.h
  387. - filter.h: contrib/restricted/noc/frr/lib/filter.h
  388. - memory.h: contrib/restricted/noc/frr/lib/memory.h
  389. - thread.h: contrib/restricted/noc/frr/lib/thread.h
  390. - source_filter: "^contrib/libs/cxxsupp/libcxxrt"
  391. includes:
  392. - atomic.h: contrib/libs/cxxsupp/libcxxrt/atomic.h