summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-14 14:58:42 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-14 15:20:23 (GMT)
commit592e3d2f96850365ee6d17989c1bca55049cfd23 (patch)
tree61298ec5e024ac58b46a9cd0ccbe8519f2a6dddd /Utilities/Scripts
parent44f3acb202c316bc6a863a1823aaafae486c899a (diff)
downloadCMake-592e3d2f96850365ee6d17989c1bca55049cfd23.zip
CMake-592e3d2f96850365ee6d17989c1bca55049cfd23.tar.gz
CMake-592e3d2f96850365ee6d17989c1bca55049cfd23.tar.bz2
clang-format.bash: Format CUDA source files too
Add `.clang-format` configuration files for Cuda test directories that use `Standard: Cpp11`. Otherwise clang-format splits the triple angle brackets used for CUDA kernels.
Diffstat (limited to 'Utilities/Scripts')
-rwxr-xr-xUtilities/Scripts/clang-format.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash
index 8e07c99..2b36ac5 100755
--- a/Utilities/Scripts/clang-format.bash
+++ b/Utilities/Scripts/clang-format.bash
@@ -107,7 +107,7 @@ case "$mode" in
esac
# Filter sources to which our style should apply.
-$git_ls -z -- '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
+$git_ls -z -- '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' '*.cu' '*.notcu' |
# Exclude lexer/parser generator input and output.
egrep -z -v '^Source/cmCommandArgumentLexer\.' |