Fixing whitespace problems

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2010-08-22 00:45:01 +00:00
parent 0e20cae1a5
commit bbd8086ee3
21 changed files with 65 additions and 67 deletions

View File

@ -274,4 +274,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base(); return x.base() - y.base();
} }
#endif #endif // ITERATORS_H

View File

@ -691,7 +691,6 @@ int main()
assert(m.str(0) == s); assert(m.str(0) == s);
} }
{ {
std::wcmatch m; std::wcmatch m;
assert(!std::regex_match(L"a", m, std::wregex())); assert(!std::regex_match(L"a", m, std::wregex()));

View File

@ -781,7 +781,6 @@ int main()
assert(m.str(0) == s); assert(m.str(0) == s);
} }
{ {
std::wcmatch m; std::wcmatch m;
assert(!std::regex_search(L"a", m, std::wregex())); assert(!std::regex_search(L"a", m, std::wregex()));

View File

@ -12,7 +12,7 @@
// namespace regex_constants // namespace regex_constants
// { // {
// //
// enum error_type // enum error_type
// { // {
// error_collate = unspecified, // error_collate = unspecified,
@ -29,7 +29,7 @@
// error_complexity = unspecified, // error_complexity = unspecified,
// error_stack = unspecified // error_stack = unspecified
// }; // };
// //
// } // }
#include <regex> #include <regex>

View File

@ -12,7 +12,7 @@
// namespace regex_constants // namespace regex_constants
// { // {
// //
// emum match_flag_type // bitmask type // emum match_flag_type // bitmask type
// { // {
// match_default = 0, // match_default = 0,
@ -29,7 +29,7 @@
// format_no_copy = unspecified, // format_no_copy = unspecified,
// format_first_only = unspecified // format_first_only = unspecified
// }; // };
// //
// } // }
#include <regex> #include <regex>

View File

@ -12,7 +12,7 @@
// namespace regex_constants // namespace regex_constants
// { // {
// //
// emum syntax_option_type // bitmask type // emum syntax_option_type // bitmask type
// { // {
// icase = unspecified, // icase = unspecified,
@ -26,7 +26,7 @@
// grep = unspecified, // grep = unspecified,
// egrep = unspecified // egrep = unspecified
// }; // };
// //
// } // }
#include <regex> #include <regex>

View File

@ -29,4 +29,4 @@ int main()
{ {
test<char>(); test<char>();
test<wchar_t>(); test<wchar_t>();
} }

View File

@ -16,4 +16,4 @@
int main() int main()
{ {
} }

View File

@ -39,4 +39,4 @@ int main()
++i; ++i;
assert(i == std::cregex_iterator()); assert(i == std::cregex_iterator());
} }
} }

View File

@ -39,4 +39,4 @@ int main()
i++; i++;
assert(i == std::cregex_iterator()); assert(i == std::cregex_iterator());
} }
} }

View File

@ -42,4 +42,4 @@ int main()
{ {
test<char>(); test<char>();
test<wchar_t>(); test<wchar_t>();
} }

View File

@ -60,5 +60,5 @@ int main()
++i; ++i;
assert(i == std::cregex_token_iterator()); assert(i == std::cregex_token_iterator());
} }
#endif #endif // _LIBCPP_MOVE
} }

View File

@ -42,4 +42,4 @@ int main()
{ {
test<char>(); test<char>();
test<wchar_t>(); test<wchar_t>();
} }

View File

@ -29,5 +29,5 @@ int main()
r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended); r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended);
assert(r2.flags() == std::regex::extended); assert(r2.flags() == std::regex::extended);
assert(r2.mark_count() == 2); assert(r2.mark_count() == 2);
#endif #endif // _LIBCPP_MOVE
} }

View File

@ -23,5 +23,5 @@ int main()
r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}; r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'};
assert(r2.flags() == std::regex::ECMAScript); assert(r2.flags() == std::regex::ECMAScript);
assert(r2.mark_count() == 2); assert(r2.mark_count() == 2);
#endif #endif // _LIBCPP_MOVE
} }

View File

@ -27,7 +27,7 @@ test(std::initializer_list<char> il, std::regex_constants::syntax_option_type f,
assert(r.mark_count() == mc); assert(r.mark_count() == mc);
} }
#endif #endif // _LIBCPP_MOVE
int main() int main()
{ {
@ -66,5 +66,5 @@ int main()
test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::egrep, 0); test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::egrep, 0);
test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::egrep, 0); test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::egrep, 0);
test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::egrep, 2); test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::egrep, 2);
#endif #endif // _LIBCPP_MOVE
} }

View File

@ -14,200 +14,200 @@
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator==(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator==(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator!=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator!=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator<(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator<=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator>=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs); // operator>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator==(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // operator==(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator!=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // operator!=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator<(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // operator<(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator>(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // operator>(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool operator>=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // bool operator>=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator<=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs, // operator<=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator==(const sub_match<BiIter>& lhs, // operator==(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator!=(const sub_match<BiIter>& lhs, // operator!=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator<(const sub_match<BiIter>& lhs, // operator<(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool operator>(const sub_match<BiIter>& lhs, // bool operator>(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator>=(const sub_match<BiIter>& lhs, // operator>=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter, class ST, class SA> // template <class BiIter, class ST, class SA>
// bool // bool
// operator<=(const sub_match<BiIter>& lhs, // operator<=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs); // const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator==(typename iterator_traits<BiIter>::value_type const* lhs, // operator==(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator!=(typename iterator_traits<BiIter>::value_type const* lhs, // operator!=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<(typename iterator_traits<BiIter>::value_type const* lhs, // operator<(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>(typename iterator_traits<BiIter>::value_type const* lhs, // operator>(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>=(typename iterator_traits<BiIter>::value_type const* lhs, // operator>=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<=(typename iterator_traits<BiIter>::value_type const* lhs, // operator<=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator==(const sub_match<BiIter>& lhs, // operator==(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator!=(const sub_match<BiIter>& lhs, // operator!=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<(const sub_match<BiIter>& lhs, // operator<(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>(const sub_match<BiIter>& lhs, // operator>(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>=(const sub_match<BiIter>& lhs, // operator>=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<=(const sub_match<BiIter>& lhs, // operator<=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs); // typename iterator_traits<BiIter>::value_type const* rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator==(typename iterator_traits<BiIter>::value_type const& lhs, // operator==(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator!=(typename iterator_traits<BiIter>::value_type const& lhs, // operator!=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<(typename iterator_traits<BiIter>::value_type const& lhs, // operator<(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>(typename iterator_traits<BiIter>::value_type const& lhs, // operator>(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>=(typename iterator_traits<BiIter>::value_type const& lhs, // operator>=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<=(typename iterator_traits<BiIter>::value_type const& lhs, // operator<=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs); // const sub_match<BiIter>& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator==(const sub_match<BiIter>& lhs, // operator==(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs); // typename iterator_traits<BiIter>::value_type const& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator!=(const sub_match<BiIter>& lhs, // operator!=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs); // typename iterator_traits<BiIter>::value_type const& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<(const sub_match<BiIter>& lhs, // operator<(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs); // typename iterator_traits<BiIter>::value_type const& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>(const sub_match<BiIter>& lhs, // operator>(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs); // typename iterator_traits<BiIter>::value_type const& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator>=(const sub_match<BiIter>& lhs, // operator>=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs); // typename iterator_traits<BiIter>::value_type const& rhs);
// //
// template <class BiIter> // template <class BiIter>
// bool // bool
// operator<=(const sub_match<BiIter>& lhs, // operator<=(const sub_match<BiIter>& lhs,

View File

@ -18,7 +18,7 @@
// typedef typename iterator_traits<iterator>::value_type value_type; // typedef typename iterator_traits<iterator>::value_type value_type;
// typedef typename iterator_traits<iterator>::difference_type difference_type; // typedef typename iterator_traits<iterator>::difference_type difference_type;
// typedef basic_string<value_type> string_type; // typedef basic_string<value_type> string_type;
// //
// bool matched; // bool matched;
// ... // ...
// }; // };

View File

@ -248,4 +248,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base(); return x.base() - y.base();
} }
#endif #endif // ITERATORS_H

View File

@ -27,7 +27,7 @@ int main()
const char A[] = "A"; const char A[] = "A";
const char Aacute[] = "\xC1"; const char Aacute[] = "\xC1";
typedef forward_iterator<const char*> F; typedef forward_iterator<const char*> F;
assert(t.transform_primary(F(A), F(A+1)) != assert(t.transform_primary(F(A), F(A+1)) !=
t.transform_primary(F(Aacute), F(Aacute+1))); t.transform_primary(F(Aacute), F(Aacute+1)));
t.imbue(std::locale("cs_CZ.ISO8859-2")); t.imbue(std::locale("cs_CZ.ISO8859-2"));
assert(t.transform_primary(F(A), F(A+1)) == assert(t.transform_primary(F(A), F(A+1)) ==

View File

@ -62,7 +62,7 @@ public:
#ifdef _LIBCPP_MOVE #ifdef _LIBCPP_MOVE
void construct(pointer p, T&& val) void construct(pointer p, T&& val)
{::new(p) T(std::move(val));} {::new(p) T(std::move(val));}
#endif #endif // _LIBCPP_MOVE
void destroy(pointer p) {p->~T();} void destroy(pointer p) {p->~T();}
friend bool operator==(const test_allocator& x, const test_allocator& y) friend bool operator==(const test_allocator& x, const test_allocator& y)
@ -105,8 +105,8 @@ public:
#ifdef _LIBCPP_HAS_NO_ADVANCED_SFINAE #ifdef _LIBCPP_HAS_NO_ADVANCED_SFINAE
std::size_t max_size() const std::size_t max_size() const
{return UINT_MAX / sizeof(T);} {return UINT_MAX / sizeof(T);}
#endif #endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
}; };
#endif #endif // TEST_ALLOCATOR_H