Fixing whitespace problems

llvm-svn: 111760
This commit is contained in:
Howard Hinnant 2010-08-22 00:31:12 +00:00
parent 0022123b95
commit b5a4c50a03
52 changed files with 54 additions and 54 deletions

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test new_handler // test new_handler
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test set_new_handler // test set_new_handler
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new[] // test operator new[]
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new [] (nothrow) // test operator new [] (nothrow)
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new [] nothrow by replacing only operator new // test operator new [] nothrow by replacing only operator new
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new[] replacement by replacing only operator new // test operator new[] replacement by replacing only operator new
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new // test operator new
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new (nothrow) // test operator new (nothrow)
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new nothrow by replacing only operator new // test operator new nothrow by replacing only operator new
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new replacement // test operator new replacement
#include <new> #include <new>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test set_terminate // test set_terminate
#include <exception> #include <exception>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test terminate_handler // test terminate_handler
#include <exception> #include <exception>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test terminate // test terminate
#include <exception> #include <exception>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test set_unexpected // test set_unexpected
#include <exception> #include <exception>
@ -25,9 +25,9 @@ int main()
{ {
std::unexpected_handler old = std::set_unexpected(f1); std::unexpected_handler old = std::set_unexpected(f1);
// verify there is a previous unexpected handler // verify there is a previous unexpected handler
assert(old); assert(old);
// verify f1 was replace with f2 // verify f1 was replace with f2
assert(std::set_unexpected(f2) == f1); assert(std::set_unexpected(f2) == f1);
// verify calling original unexpected handler calls terminate // verify calling original unexpected handler calls terminate
std::set_terminate(f3); std::set_terminate(f3);
(*old)(); (*old)();

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test unexpected_handler // test unexpected_handler
#include <exception> #include <exception>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test unexpected // test unexpected
#include <exception> #include <exception>

View File

@ -15,7 +15,7 @@
// typedef const E& reference; // typedef const E& reference;
// typedef const E& const_reference; // typedef const E& const_reference;
// typedef size_t size_type; // typedef size_t size_type;
// //
// typedef const E* iterator; // typedef const E* iterator;
// typedef const E* const_iterator; // typedef const E* const_iterator;

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test cfloat // test cfloat
#include <cfloat> #include <cfloat>

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test climits // test climits
#include <climits> #include <climits>

View File

@ -48,7 +48,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(); test<char16_t>();
test<char32_t>(); test<char32_t>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<signed char>(); test<signed char>();
test<unsigned char>(); test<unsigned char>();
test<signed short>(); test<signed short>();

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(0); test<short>(0);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(0); test<int>(0);

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 16>(); test<char16_t, 16>();
test<char32_t, 32>(); test<char32_t, 32>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 15>(); test<short, 15>();
test<unsigned short, 16>(); test<unsigned short, 16>();
test<int, 31>(); test<int, 31>();

View File

@ -38,7 +38,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 4>(); test<char16_t, 4>();
test<char32_t, 9>(); test<char32_t, 9>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 4>(); test<short, 4>();
test<unsigned short, 4>(); test<unsigned short, 4>();
test<int, 9>(); test<int, 9>();

View File

@ -35,7 +35,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(0); test<short>(0);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(0); test<int>(0);

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, std::denorm_absent>(); test<char16_t, std::denorm_absent>();
test<char32_t, std::denorm_absent>(); test<char32_t, std::denorm_absent>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, std::denorm_absent>(); test<short, std::denorm_absent>();
test<unsigned short, std::denorm_absent>(); test<unsigned short, std::denorm_absent>();
test<int, std::denorm_absent>(); test<int, std::denorm_absent>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -37,7 +37,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(0); test<short>(0);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(0); test<int>(0);

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, true>(); test<char16_t, true>();
test<char32_t, true>(); test<char32_t, true>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, true>(); test<unsigned short, true>();
test<int, true>(); test<int, true>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, true>(); test<char16_t, true>();
test<char32_t, true>(); test<char32_t, true>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, true>(); test<unsigned short, true>();
test<int, true>(); test<int, true>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, true>(); test<char16_t, true>();
test<char32_t, true>(); test<char32_t, true>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, true>(); test<unsigned short, true>();
test<int, true>(); test<int, true>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, true>(); test<char16_t, true>();
test<char32_t, true>(); test<char32_t, true>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, true>(); test<unsigned short, true>();
test<int, true>(); test<int, true>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, true>(); test<int, true>();

View File

@ -41,7 +41,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(SHRT_MIN); test<short>(SHRT_MIN);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(INT_MIN); test<int>(INT_MIN);

View File

@ -41,7 +41,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(USHRT_MAX); test<char16_t>(USHRT_MAX);
test<char32_t>(UINT_MAX); test<char32_t>(UINT_MAX);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(SHRT_MAX); test<short>(SHRT_MAX);
test<unsigned short>(USHRT_MAX); test<unsigned short>(USHRT_MAX);
test<int>(INT_MAX); test<int>(INT_MAX);

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 0>(); test<char16_t, 0>();
test<char32_t, 0>(); test<char32_t, 0>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 0>(); test<short, 0>();
test<unsigned short, 0>(); test<unsigned short, 0>();
test<int, 0>(); test<int, 0>();

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 0>(); test<char16_t, 0>();
test<char32_t, 0>(); test<char32_t, 0>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 0>(); test<short, 0>();
test<unsigned short, 0>(); test<unsigned short, 0>();
test<int, 0>(); test<int, 0>();

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 0>(); test<char16_t, 0>();
test<char32_t, 0>(); test<char32_t, 0>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 0>(); test<short, 0>();
test<unsigned short, 0>(); test<unsigned short, 0>();
test<int, 0>(); test<int, 0>();

View File

@ -41,7 +41,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(SHRT_MIN); test<short>(SHRT_MIN);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(INT_MIN); test<int>(INT_MIN);

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 0>(); test<char16_t, 0>();
test<char32_t, 0>(); test<char32_t, 0>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 0>(); test<short, 0>();
test<unsigned short, 0>(); test<unsigned short, 0>();
test<int, 0>(); test<int, 0>();

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 0>(); test<char16_t, 0>();
test<char32_t, 0>(); test<char32_t, 0>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 0>(); test<short, 0>();
test<unsigned short, 0>(); test<unsigned short, 0>();
test<int, 0>(); test<int, 0>();

View File

@ -54,7 +54,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(); test<char16_t>();
test<char32_t>(); test<char32_t>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(); test<short>();
test<unsigned short>(); test<unsigned short>();
test<int>(); test<int>();

View File

@ -34,7 +34,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, 2>(); test<char16_t, 2>();
test<char32_t, 2>(); test<char32_t, 2>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, 2>(); test<short, 2>();
test<unsigned short, 2>(); test<unsigned short, 2>();
test<int, 2>(); test<int, 2>();

View File

@ -35,7 +35,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(0); test<char16_t>(0);
test<char32_t>(0); test<char32_t>(0);
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(0); test<short>(0);
test<unsigned short>(0); test<unsigned short>(0);
test<int>(0); test<int>(0);

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, std::round_toward_zero>(); test<char16_t, std::round_toward_zero>();
test<char32_t, std::round_toward_zero>(); test<char32_t, std::round_toward_zero>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, std::round_toward_zero>(); test<short, std::round_toward_zero>();
test<unsigned short, std::round_toward_zero>(); test<unsigned short, std::round_toward_zero>();
test<int, std::round_toward_zero>(); test<int, std::round_toward_zero>();

View File

@ -54,7 +54,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t>(); test<char16_t>();
test<char32_t>(); test<char32_t>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short>(); test<short>();
test<unsigned short>(); test<unsigned short>();
test<int>(); test<int>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, false>(); test<char16_t, false>();
test<char32_t, false>(); test<char32_t, false>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, false>(); test<short, false>();
test<unsigned short, false>(); test<unsigned short, false>();
test<int, false>(); test<int, false>();

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_t, true>(); test<char16_t, true>();
test<char32_t, true>(); test<char32_t, true>();
#endif #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<short, true>(); test<short, true>();
test<unsigned short, true>(); test<unsigned short, true>();
test<int, true>(); test<int, true>();

View File

@ -29,7 +29,7 @@ int main()
// GCC 4.2 through 4.5 can't handle this // GCC 4.2 through 4.5 can't handle this
void (A::*pmf)() = 0; void (A::*pmf)() = 0;
assert(pmf == nullptr); assert(pmf == nullptr);
#endif #endif // !((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ <= 5))
int A::*pmd = 0; int A::*pmd = 0;
assert(pmd == nullptr); assert(pmd == nullptr);
A a1(nullptr); A a1(nullptr);