Skip to content

Commit c750c52

Browse files
liuliucopybara-github
authored andcommitted
Recognize CUDA header file type (.cuh)
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
1 parent 8089194 commit c750c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class CppFileTypes {
4949

5050
public static final FileType CPP_HEADER =
5151
FileType.of(
52-
".h", ".hh", ".hpp", ".ipp", ".hxx", ".h++", ".inc", ".inl", ".tlh", ".tli", ".H",
52+
".cuh", ".h", ".hh", ".hpp", ".ipp", ".hxx", ".h++", ".inc", ".inl", ".tlh", ".tli", ".H",
5353
".tcc");
5454
public static final FileType PCH = FileType.of(".pch");
5555
public static final FileTypeSet OBJC_HEADER = FileTypeSet.of(CPP_HEADER, PCH);

0 commit comments

Comments
 (0)