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.
//
//===----------------------------------------------------------------------===//
// test new_handler
#include <new>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// test set_unexpected
#include <exception>
@ -25,9 +25,9 @@ int main()
{
std::unexpected_handler old = std::set_unexpected(f1);
// verify there is a previous unexpected handler
assert(old);
assert(old);
// 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
std::set_terminate(f3);
(*old)();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<char16_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<unsigned short, std::round_toward_zero>();
test<int, std::round_toward_zero>();

View File

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

View File

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

View File

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

View File

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