summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-26 13:28:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-26 13:28:13 (GMT)
commit1c8b99ce0b8e3a7a78b029a0cf18dc7256be6aee (patch)
tree80b7a3c55e99e9af8c7ca45dec9ff1a03f2a980a
parent9d203c0051bbec48dfbee90940e6faff87a2bdeb (diff)
parent68e7250a9facbe7b82cff17af3bf2a831e481f3c (diff)
downloadCMake-1c8b99ce0b8e3a7a78b029a0cf18dc7256be6aee.zip
CMake-1c8b99ce0b8e3a7a78b029a0cf18dc7256be6aee.tar.gz
CMake-1c8b99ce0b8e3a7a78b029a0cf18dc7256be6aee.tar.bz2
Merge topic 'fix-right-angle-bracket-feature-test'
68e7250a Features: Fix cxx_right_angle_brackets compiler feature test
-rw-r--r--Tests/CompileFeatures/cxx_right_angle_brackets.cpp4
-rwxr-xr-xUtilities/Scripts/clang-format.bash1
2 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/cxx_right_angle_brackets.cpp b/Tests/CompileFeatures/cxx_right_angle_brackets.cpp
index 8f1b0ee..4d494b5 100644
--- a/Tests/CompileFeatures/cxx_right_angle_brackets.cpp
+++ b/Tests/CompileFeatures/cxx_right_angle_brackets.cpp
@@ -7,6 +7,8 @@ struct A
void someFunc()
{
- A<A<int> > object;
+ /* clang-format off */
+ A<A<int>> object;
+ /* clang-format on */
(void)object;
}
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash
index a7080fc..ad3b3a1 100755
--- a/Utilities/Scripts/clang-format.bash
+++ b/Utilities/Scripts/clang-format.bash
@@ -130,6 +130,7 @@ $git_ls -z -- '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
# Exclude manually-formatted sources (e.g. with long lines).
egrep -z -v '^Tests/PositionIndependentTargets/pic_test.h' |
+ egrep -z -v '^Tests/CompileFeatures/cxx_right_angle_brackets.cpp' |
# Exclude sources with encoding not suported by clang-format.
egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |