Skip to content

Commit db6f7e0

Browse files
[git-clang-format] Process CUDA header files
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. Reviewed By: MyDeveloperDay Patch By: tomilov Differential Revision: https://reviews.llvm.org/D90780
1 parent c044709 commit db6f7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def main():
7878
'm', # ObjC
7979
'mm', # ObjC++
8080
'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', # C++
81-
'cu', # CUDA
81+
'cu', 'cuh', # CUDA
8282
# Other languages that clang-format supports
8383
'proto', 'protodevel', # Protocol Buffers
8484
'java', # Java

0 commit comments

Comments
 (0)