summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly
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 /Tests/CudaOnly
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 'Tests/CudaOnly')
-rw-r--r--Tests/CudaOnly/.clang-format9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CudaOnly/.clang-format b/Tests/CudaOnly/.clang-format
new file mode 100644
index 0000000..a77589a
--- /dev/null
+++ b/Tests/CudaOnly/.clang-format
@@ -0,0 +1,9 @@
+---
+# This configuration requires clang-format 3.8 or higher.
+BasedOnStyle: Mozilla
+AlignOperands: false
+AlwaysBreakAfterReturnType: None
+AlwaysBreakAfterDefinitionReturnType: None
+ColumnLimit: 79
+Standard: Cpp11
+...