]> granicus.if.org Git - clang/commitdiff
[git-clang-format] Process CUDA files
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 28 Jan 2018 10:11:25 +0000 (10:11 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 28 Jan 2018 10:11:25 +0000 (10:11 +0000)
Clang supports compiling CUDA source files for some time,
format them by default as well.

Differential Revision: https://reviews.llvm.org/D42589

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323615 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format/git-clang-format

index 60cd4fb25b6353b30445380f4d4bcb43ce6af37b..0b2103962a31e8a04e7b44b1116e874034396ac1 100755 (executable)
@@ -79,6 +79,7 @@ def main():
       'm',  # ObjC
       'mm',  # ObjC++
       'cc', 'cp', 'cpp', 'c++', 'cxx', 'hpp',  # C++
+      'cu',  # CUDA
       # Other languages that clang-format supports
       'proto', 'protodevel',  # Protocol Buffers
       'java',  # Java