Skip to content

Commit e6bc43f

Browse files
committed
Remove trailing spaces and newlines in Boost.StaticAssert sources.
1 parent 578b94f commit e6bc43f

15 files changed

Lines changed: 33 additions & 90 deletions

example/static_assert_example_1.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -28,7 +28,3 @@ int main()
2828
{
2929
return 0;
3030
}
31-
32-
33-
34-

example/static_assert_example_2.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -31,10 +31,3 @@ int main()
3131
//foo(l.begin(), l.end()); // error
3232
return 0;
3333
}
34-
35-
36-
37-
38-
39-
40-

example/static_assert_example_3.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -29,5 +29,3 @@ int main()
2929
{
3030
return 0;
3131
}
32-
33-

include/boost/static_assert.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org/libs/static_assert for documentation.
@@ -121,13 +121,13 @@ template<std::size_t x> struct static_assert_test{};
121121
sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST (__VA_ARGS__) >)>\
122122
BOOST_JOIN(boost_static_assert_typedef_, __COUNTER__)
123123
#elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && defined(BOOST_NO_CXX11_VARIADIC_MACROS)
124-
// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error
124+
// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error
125125
// instead of warning in case of failure
126126
# define BOOST_STATIC_ASSERT( B ) \
127127
typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \
128128
[ ::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( B ) >::value ]
129129
#elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && !defined(BOOST_NO_CXX11_VARIADIC_MACROS)
130-
// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error
130+
// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error
131131
// instead of warning in case of failure
132132
# define BOOST_STATIC_ASSERT(...) \
133133
typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \
@@ -177,5 +177,3 @@ template<std::size_t x> struct static_assert_test{};
177177
#endif // defined(BOOST_NO_CXX11_STATIC_ASSERT)
178178

179179
#endif // BOOST_STATIC_ASSERT_HPP
180-
181-

test/static_assert_test.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -88,7 +88,7 @@ void test_Bill() // BOOST_STATIC_ASSERTs are not triggerred until instantiated
8888
}
8989

9090
int main()
91-
{
91+
{
9292
test_Bill();
9393
//
9494
// Test variadic macro support:
@@ -99,9 +99,5 @@ int main()
9999
BOOST_STATIC_ASSERT_MSG(Bill<int, char>::value, "This is a message");
100100
#endif
101101
#endif
102-
return 0;
102+
return 0;
103103
}
104-
105-
106-
107-

test/static_assert_test_fail_1.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -15,9 +15,3 @@ typedef char a2[3];
1515

1616
// Namespace scope
1717
BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // will not compile
18-
19-
20-
21-
22-
23-

test/static_assert_test_fail_10.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template <int N>
88
int foo()
99
{
1010
BOOST_STATIC_ASSERT( N < 2 );
11-
11+
1212
return N;
1313
}
1414

test/static_assert_test_fail_2.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -18,8 +18,3 @@ void f()
1818
{
1919
BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // should not compile
2020
}
21-
22-
23-
24-
25-

test/static_assert_test_fail_3.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -31,9 +31,3 @@ struct Bob
3131
return x;
3232
}
3333
};
34-
35-
36-
37-
38-
39-

test/static_assert_test_fail_4.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// (C) Copyright Steve Cleary & John Maddock 2000.
2-
// Use, modification and distribution are subject to the
3-
// Boost Software License, Version 1.0. (See accompanying file
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

66
// See http://www.boost.org for most recent version including documentation.
@@ -30,9 +30,3 @@ struct Bob
3030
return x;
3131
}
3232
};
33-
34-
35-
36-
37-
38-

0 commit comments

Comments
 (0)