Comment #8 on issue 950 by bgd54: CUDA support in iwyu
https://github.com/include-what-you-use/include-what-you-use/issues/950
Hi!
Is there any update on CUDA support?
I've tried to run iwyu (0.17 with clang 13.0) on a small project with the compile_commands.json that I generated with CMake. Clang has two passes on CUDA files (one for host code and one for device), hence iwyu and other clang tools consider the compile command for `*cu` files as multiple compiler jobs. I manually added `--cuda-host-only` to my compile_commands.json and got reasonable results.
There are some clang specific headers and some differences between the result with `--cuda-host-only` and `--cuda-device-only`, but generally it seems to work.