forked from OSchip/llvm-project
[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
This commit is contained in:
parent
c044709b8f
commit
db6f7e0e9e
|
@ -78,7 +78,7 @@ def main():
|
|||
'm', # ObjC
|
||||
'mm', # ObjC++
|
||||
'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', # C++
|
||||
'cu', # CUDA
|
||||
'cu', 'cuh', # CUDA
|
||||
# Other languages that clang-format supports
|
||||
'proto', 'protodevel', # Protocol Buffers
|
||||
'java', # Java
|
||||
|
|
Loading…
Reference in New Issue