compiler-explorer/compiler-explorer

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

Open

#6 944 ouverte le 8 oct. 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)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

Guide contributeur