[cfe-users] clang-tidy and CUDA

Jakub Klener via cfe-users cfe-users at lists.llvm.org
Thu Oct 26 00:22:30 PDT 2017


is it somehow possible to specify source file extension for clang-tidy, 
can it for example parse ".cu" files? Is there some support for CUDA in 
clang-tidy? I ran it on my CUDA source file (which I have to rename to 
".cc" file), specified -D__CUDACC__, and it found error: unknown type 
name '__host__' [clang-diagnostic-error].

Any help would be appreciated.

* Jakub Klener
* Eyen SE
* Pocernicka 272/96
* 108 00 Prague
* Czech Republic
* http://www.eyen.se/

More information about the cfe-users mailing list