Fixing whitespace problems

llvm-svn: 111764
This commit is contained in:
Howard Hinnant 2010-08-22 00:47:54 +00:00
parent f36101dd3d
commit bf2897cf45
105 changed files with 182 additions and 182 deletions

View File

@ -43,6 +43,6 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
test<std::u16string>();
test<std::u32string>();
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
test<std::wstring>();
}

View File

@ -29,4 +29,4 @@ public:
{return !(x == y);}
};
#endif
#endif // INPUT_ITERATOR_H

View File

@ -28,5 +28,5 @@ int main()
s = {L'a', L'b', L'c'};
assert(s == L"abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -22,5 +22,5 @@ int main()
s = {'a', 'b', 'c'};
assert(s == "abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -31,7 +31,7 @@ test(S s0)
assert(s2.get_allocator() == s1.get_allocator());
}
#endif
#endif // _LIBCPP_MOVE
int main()
{
@ -41,5 +41,5 @@ int main()
test(S(A(3)));
test(S("1", A(5)));
test(S("1234567890123456789012345678901234567890123456789012345678901234567890", A(7)));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -31,7 +31,7 @@ test(S s0, const typename S::allocator_type& a)
assert(s2.get_allocator() == a);
}
#endif
#endif // _LIBCPP_MOVE
int main()
{
@ -41,5 +41,5 @@ int main()
test(S(), A(3));
test(S("1"), A(5));
test(S("1234567890123456789012345678901234567890123456789012345678901234567890"), A(7));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -31,7 +31,7 @@ test(S s1, S s2)
assert(s1.capacity() >= s1.size());
}
#endif
#endif // _LIBCPP_MOVE
int main()
{
@ -52,5 +52,5 @@ int main()
test(S("1234567890123456789012345678901234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890123456789012345678901234567890"),
S("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -22,5 +22,5 @@ int main()
s.append({'a', 'b', 'c'});
assert(s == "123abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -22,5 +22,5 @@ int main()
s.assign({'a', 'b', 'c'});
assert(s == "abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -23,5 +23,5 @@ int main()
assert(i - s.begin() == 3);
assert(s == "123abc456");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -22,5 +22,5 @@ int main()
s += {'a', 'b', 'c'};
assert(s == "123abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -22,5 +22,5 @@ int main()
s.replace(s.begin() + 3, s.begin() + 6, {'a', 'b', 'c'});
assert(s == "123abc456");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -31,5 +31,5 @@ int main()
getline(std::wistringstream(L" abc* def* ghij"), s, L'*');
assert(s == L" abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -31,5 +31,5 @@ int main()
getline(std::wistringstream(L" abc\n def\n ghij"), s);
assert(s == L" abc");
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -36,7 +36,7 @@ test1(typename S::value_type lhs, S&& rhs, const S& x)
assert(lhs + move(rhs) == x);
}
#endif
#endif // _LIBCPP_MOVE
typedef std::string S;
@ -54,5 +54,5 @@ int main()
test1('a', S("1234567890"), S("a1234567890"));
test1('a', S("12345678901234567890"), S("a12345678901234567890"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -36,7 +36,7 @@ test1(const typename S::value_type* lhs, S&& rhs, const S& x)
assert(lhs + move(rhs) == x);
}
#endif
#endif // _LIBCPP_MOVE
typedef std::string S;
@ -78,5 +78,5 @@ int main()
test1("abcdefghijklmnopqrst", S("1234567890"), S("abcdefghijklmnopqrst1234567890"));
test1("abcdefghijklmnopqrst", S("12345678901234567890"), S("abcdefghijklmnopqrst12345678901234567890"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -36,7 +36,7 @@ test1(S&& lhs, typename S::value_type rhs, const S& x)
assert(move(lhs) + rhs == x);
}
#endif
#endif // _LIBCPP_MOVE
typedef std::string S;
@ -54,5 +54,5 @@ int main()
test1(S("abcdefghij"), '1', S("abcdefghij1"));
test1(S("abcdefghijklmnopqrst"), '1', S("abcdefghijklmnopqrst1"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -36,7 +36,7 @@ test1(S&& lhs, const typename S::value_type* rhs, const S& x)
assert(move(lhs) + rhs == x);
}
#endif
#endif // _LIBCPP_MOVE
typedef std::string S;
@ -78,5 +78,5 @@ int main()
test1(S("abcdefghijklmnopqrst"), "1234567890", S("abcdefghijklmnopqrst1234567890"));
test1(S("abcdefghijklmnopqrst"), "12345678901234567890", S("abcdefghijklmnopqrst12345678901234567890"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -62,7 +62,7 @@ test3(S&& lhs, S&& rhs, const S& x)
assert(move(lhs) + move(rhs) == x);
}
#endif
#endif // _LIBCPP_MOVE
typedef std::string S;
@ -138,5 +138,5 @@ int main()
test3(S("abcdefghijklmnopqrst"), S("1234567890"), S("abcdefghijklmnopqrst1234567890"));
test3(S("abcdefghijklmnopqrst"), S("12345678901234567890"), S("abcdefghijklmnopqrst12345678901234567890"));
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -67,4 +67,4 @@ public:
{return !(x == y);}
};
#endif
#endif // TEST_ALLOCATOR_H

View File

@ -7,4 +7,4 @@ struct test_traits
typedef charT char_type;
};
#endif
#endif // TEST_TRAITS_H

View File

@ -22,5 +22,5 @@ int main()
char16_t c = u'\0';
std::char_traits<char16_t>::assign(c, u'a');
assert(c == u'a');
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(s2[0] == char16_t(5));
assert(s2[1] == char16_t(5));
assert(s2[2] == char16_t(5));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -38,5 +38,5 @@ int main()
assert(std::char_traits<char16_t>::compare(u"223", u"123", 3) > 0);
assert(std::char_traits<char16_t>::compare(u"133", u"123", 3) > 0);
assert(std::char_traits<char16_t>::compare(u"124", u"123", 3) > 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(s2[0] == char16_t(1));
assert(s2[1] == char16_t(2));
assert(s2[2] == char16_t(3));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
char16_t c = u'\0';
assert(std::char_traits<char16_t>::eq(u'a', u'a'));
assert(!std::char_traits<char16_t>::eq(u'a', u'A'));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A'));
assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(),
std::char_traits<char16_t>::eof()));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2);
assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0);
assert(std::char_traits<char16_t>::find(s1, 3, char16_t(0)) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(std::char_traits<char16_t>::length(u"aa") == 2);
assert(std::char_traits<char16_t>::length(u"aaa") == 3);
assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
char16_t c = u'\0';
assert(!std::char_traits<char16_t>::lt(u'a', u'a'));
assert( std::char_traits<char16_t>::lt(u'A', u'a'));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -29,5 +29,5 @@ int main()
assert(s1[0] == char16_t(2));
assert(s1[1] == char16_t(2));
assert(s1[2] == char16_t(3));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(std::char_traits<char16_t>::not_eof(0) == 0);
assert(std::char_traits<char16_t>::not_eof(std::char_traits<char16_t>::eof()) !=
std::char_traits<char16_t>::eof());
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
assert(std::char_traits<char16_t>::to_char_type(u'a') == u'a');
assert(std::char_traits<char16_t>::to_char_type(u'A') == u'A');
assert(std::char_traits<char16_t>::to_char_type(0) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
assert(std::char_traits<char16_t>::to_int_type(u'a') == u'a');
assert(std::char_traits<char16_t>::to_int_type(u'A') == u'A');
assert(std::char_traits<char16_t>::to_int_type(0) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -29,5 +29,5 @@ int main()
static_assert((std::is_same<std::char_traits<char16_t>::off_type, std::streamoff>::value), "");
static_assert((std::is_same<std::char_traits<char16_t>::pos_type, std::u16streampos>::value), "");
static_assert((std::is_same<std::char_traits<char16_t>::state_type, std::mbstate_t>::value), "");
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
char32_t c = U'\0';
std::char_traits<char32_t>::assign(c, U'a');
assert(c == U'a');
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(s2[0] == char32_t(5));
assert(s2[1] == char32_t(5));
assert(s2[2] == char32_t(5));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -38,5 +38,5 @@ int main()
assert(std::char_traits<char32_t>::compare(U"223", U"123", 3) > 0);
assert(std::char_traits<char32_t>::compare(U"133", U"123", 3) > 0);
assert(std::char_traits<char32_t>::compare(U"124", U"123", 3) > 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(s2[0] == char32_t(1));
assert(s2[1] == char32_t(2));
assert(s2[2] == char32_t(3));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
char32_t c = U'\0';
assert(std::char_traits<char32_t>::eq(U'a', U'a'));
assert(!std::char_traits<char32_t>::eq(U'a', U'A'));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A'));
assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(),
std::char_traits<char32_t>::eof()));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -25,5 +25,5 @@ int main()
assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2);
assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0);
assert(std::char_traits<char32_t>::find(s1, 3, char32_t(0)) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(std::char_traits<char32_t>::length(U"aa") == 2);
assert(std::char_traits<char32_t>::length(U"aaa") == 3);
assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
char32_t c = U'\0';
assert(!std::char_traits<char32_t>::lt(U'a', U'a'));
assert( std::char_traits<char32_t>::lt(U'A', U'a'));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -29,5 +29,5 @@ int main()
assert(s1[0] == char32_t(2));
assert(s1[1] == char32_t(2));
assert(s1[2] == char32_t(3));
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -24,5 +24,5 @@ int main()
assert(std::char_traits<char32_t>::not_eof(0) == 0);
assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) !=
std::char_traits<char32_t>::eof());
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
assert(std::char_traits<char32_t>::to_char_type(U'a') == U'a');
assert(std::char_traits<char32_t>::to_char_type(U'A') == U'A');
assert(std::char_traits<char32_t>::to_char_type(0) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -22,5 +22,5 @@ int main()
assert(std::char_traits<char32_t>::to_int_type(U'a') == U'a');
assert(std::char_traits<char32_t>::to_int_type(U'A') == U'A');
assert(std::char_traits<char32_t>::to_int_type(0) == 0);
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -29,5 +29,5 @@ int main()
static_assert((std::is_same<std::char_traits<char32_t>::off_type, std::streamoff>::value), "");
static_assert((std::is_same<std::char_traits<char32_t>::pos_type, std::u32streampos>::value), "");
static_assert((std::is_same<std::char_traits<char32_t>::state_type, std::mbstate_t>::value), "");
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}

View File

@ -26,5 +26,5 @@ int main()
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
typedef std::u16string test3;
typedef std::u32string test4;
#endif
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
}