Merge branch 'backport-clang-format-cuda' into clang-format-cuda

This commit is contained in:
Brad King
2017-02-14 10:21:22 -05:00
4 changed files with 20 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
#ifndef __CUDACC__
# error "A C or C++ compiler has been selected for CUDA"
#error "A C or C++ compiler has been selected for CUDA"
#endif
#include "CMakeCompilerABI.h"

9
Tests/Cuda/.clang-format Normal file
View File

@@ -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
...

View File

@@ -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
...

View File

@@ -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\.' |