This is an archive of the discontinued LLVM Phabricator instance.

[git-clang-format] Process CUDA header files
ClosedPublic

Authored by tomilov on Nov 4 2020, 11:29 AM.

Details

Summary

Clang supports compiling CUDA source files,
CUDA header files may contain CUDA specific code
that is why they have special extension, which
can be recognized by nvcc (CUDA compiler driver)
as CUDA source file.
Format them by default as well.

Diff Detail

Event Timeline

tomilov created this revision.Nov 4 2020, 11:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2020, 11:29 AM
tomilov requested review of this revision.Nov 4 2020, 11:29 AM
This revision is now accepted and ready to land.Nov 8 2020, 7:50 AM

@MyDeveloperDay May you commit it on my behalf, please? I have no rights to land it properly.

I'm happy to do this in time, but let's wait a little in case others have any comments

This revision was landed with ongoing or failed builds.Nov 14 2020, 4:39 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2020, 4:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript