compiler-explorer/compiler-explorer

[REQUEST]: Enable clang-tidy for Clang-CUDA builds

Open

#6,944 opened on Oct 8, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (14,391 stars) (1,605 forks)batch import
good first issuelang-cudarequest

Description

Is your feature request related to a problem? Please describe

No problem.

Describe the solution you'd like

Since Clang can be used to compile CUDA code, so can clang-tidy be used to lint it. Currently Compiler Explorer displays the tool is not supported, but technically it's possible. It should be fairly easy, pretty much drop-in replace "clang" with "clang-tidy" in the compiler invocation.

Describe alternatives you've considered

No alternatives.

Additional context

Not applicable

Contributor guide