diff options
author | Brad King <brad.king@kitware.com> | 2017-02-14 15:16:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-14 15:21:48 (GMT) |
commit | 33a65941fa5d7c12d79f9a4e002fed418ba6adc7 (patch) | |
tree | d3b7927977111ac2d90f233d4f8623feafefe7d9 /Tests/CudaOnly/SeparateCompilation/file2.cu | |
parent | fa5188d0edf081396ca0134d07cd8706549ddede (diff) | |
download | CMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.zip CMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.tar.gz CMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.tar.bz2 |
Tests: Run clang-format on CUDA code
Diffstat (limited to 'Tests/CudaOnly/SeparateCompilation/file2.cu')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilation/file2.cu | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Tests/CudaOnly/SeparateCompilation/file2.cu b/Tests/CudaOnly/SeparateCompilation/file2.cu index 6b8b06b..74f3558 100644 --- a/Tests/CudaOnly/SeparateCompilation/file2.cu +++ b/Tests/CudaOnly/SeparateCompilation/file2.cu @@ -5,16 +5,12 @@ result_type __device__ file1_func(int x); result_type_dynamic __device__ file2_func(int x) { - if(x!=42) - { + if (x != 42) { const result_type r = file1_func(x); - const result_type_dynamic rd { r.input, r.sum, true }; + const result_type_dynamic rd{ r.input, r.sum, true }; return rd; - } - else - { - const result_type_dynamic rd { x, x*x*x, false }; + } else { + const result_type_dynamic rd{ x, x * x * x, false }; return rd; - } - + } } |