mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Features: Fix cxx_right_angle_brackets compiler feature test
The clang-format pass in commit v3.6.0-rc1~54^2~1 (Revise C++ coding style using clang-format, 2016-05-16) changed the template right angle brackets from `>>` to `> >`, which defeats the purpose of this test. Change it back and exclude this content from formatting.
This commit is contained in:
parent
2a567c68ce
commit
68e7250a9f
@ -7,6 +7,8 @@ struct A
|
||||
|
||||
void someFunc()
|
||||
{
|
||||
A<A<int> > object;
|
||||
/* clang-format off */
|
||||
A<A<int>> object;
|
||||
/* clang-format on */
|
||||
(void)object;
|
||||
}
|
||||
|
@ -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' |
|
||||
|
Loading…
Reference in New Issue
Block a user