pytorch/tools/iwyu/system.imp
cyy bae61ecb96 [Reland 1] Cleanup header inclusions in torch_cpu by iwyu (#112311)
Reland https://github.com/pytorch/pytorch/pull/101178 to use IWYU on torch_cpu. The header file changes are excluded to avoid breaking internal jobs.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/112311
Approved by: https://github.com/ezyang
2023-11-19 04:06:36 +00:00

9 lines
444 B
Plaintext

# Toolchain-specific mappings. These ones seem to be missing from iwyu defaults
[
{ include: [ "<bits/struct_stat.h>", private, "<sys/stat.h>", public ] },
{ include: [ "<bits/pthreadtypes.h>", private, "<pthread.h>", public ] },
{ include: [ "<bits/refwrap.h>", private, "<reference_wrapper>", public ] },
{ symbol: [ "size_t", private, "<cstddef>", public ] },
{ symbol: [ "ptrdiff_t", private, "<cstddef>", public ] },
]