[clang-tidy] Suppress readability-static-access-through-instance for CUDA built-in variables
clang-tidy can be used to statically analyze CUDA code, thanks to clang being able to compile CUDA code natively. This makes clang-tidy the one and only open-source static analyzer for CUDA. However it currently warns for native CUDA built-in variables, like threadIdx, due to the way they are implemented in clang. Users don't need to know the details of the clang implementation, and they should continue to write idiomatic code. Therefore, suppress the warning if a CUDA built-in variable is encountered. Fixes https://bugs.llvm.org/show_bug.cgi?id=48758
Loading
Please sign in to comment