diff options
author | Brad King <brad.king@kitware.com> | 2017-02-22 20:01:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-22 21:59:26 (GMT) |
commit | d5f39a56a44fe061018c6acc15e1c3aa7337ff54 (patch) | |
tree | 4a4e0bf7ef543de77f176899540a426a5d6b6d23 /Tests | |
parent | f6986ee479f1cce6da17859eaf6a0616852b9e20 (diff) | |
download | CMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.zip CMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.tar.gz CMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.tar.bz2 |
clang-format.bash: Use Git attributes to mark files for formatting
Diffstat (limited to 'Tests')
4 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/.gitattributes b/Tests/CompileFeatures/.gitattributes new file mode 100644 index 0000000..83da28d --- /dev/null +++ b/Tests/CompileFeatures/.gitattributes @@ -0,0 +1,2 @@ +# Do not format a source containing C++11 '>>' syntax as C++98. +cxx_right_angle_brackets.cpp -format.clang-format diff --git a/Tests/PositionIndependentTargets/.gitattributes b/Tests/PositionIndependentTargets/.gitattributes new file mode 100644 index 0000000..ed36631 --- /dev/null +++ b/Tests/PositionIndependentTargets/.gitattributes @@ -0,0 +1,2 @@ +# Do not format a source where we want a long line preserved. +pic_test.h -format.clang-format diff --git a/Tests/RunCMake/CommandLine/cmake_depends/.gitattributes b/Tests/RunCMake/CommandLine/cmake_depends/.gitattributes new file mode 100644 index 0000000..9c22288 --- /dev/null +++ b/Tests/RunCMake/CommandLine/cmake_depends/.gitattributes @@ -0,0 +1,2 @@ +# Do not format a source encoded in UTF-16. +test_UTF-16LE.h -format.clang-format diff --git a/Tests/RunCMake/GenerateExportHeader/reference/.gitattributes b/Tests/RunCMake/GenerateExportHeader/reference/.gitattributes new file mode 100644 index 0000000..883a7f1 --- /dev/null +++ b/Tests/RunCMake/GenerateExportHeader/reference/.gitattributes @@ -0,0 +1,2 @@ +# Exclude reference content from formatting. +* -format.clang-format |