Skip to content

Commit

Permalink
Recognize CUDA header file type (.cuh)
Browse files Browse the repository at this point in the history
This PR mirrors the fix in
8804128

.cuh is widely used as suffix for CUDA. It is made more prominent since
"cub" (https://nvlabs.github.io/cub/) recently distributed with CUDA
ToolKit 11, hence, now .cuh headers are in every CUDA ToolKit
distribution.

I would like to continue with this PR and fix any breakages that may encounter.

Closes #12134.

PiperOrigin-RevId: 351755442
  • Loading branch information
liuliu authored and copybara-github committed Jan 14, 2021
1 parent 8089194 commit c750c52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public final class CppFileTypes {

public static final FileType CPP_HEADER =
FileType.of(
".h", ".hh", ".hpp", ".ipp", ".hxx", ".h++", ".inc", ".inl", ".tlh", ".tli", ".H",
".cuh", ".h", ".hh", ".hpp", ".ipp", ".hxx", ".h++", ".inc", ".inl", ".tlh", ".tli", ".H",
".tcc");
public static final FileType PCH = FileType.of(".pch");
public static final FileTypeSet OBJC_HEADER = FileTypeSet.of(CPP_HEADER, PCH);
Expand Down

0 comments on commit c750c52

Please sign in to comment.