[cfe-dev] clang-tidy and CUDA

Jakub Klener via cfe-dev cfe-dev at lists.llvm.org
Thu Jun 28 23:46:23 PDT 2018


Hello,

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 because otherwise clang-tidy could not find it), specified -D__CUDACC__, and it found error: unknown type
name '__host__' [clang-diagnostic-error].

Any help would be appreciated.
Jakub

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




More information about the cfe-dev mailing list