summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/re/iterators.h2
-rw-r--r--libcxx/test/re/re.alg/re.alg.match/basic.pass.cpp1
-rw-r--r--libcxx/test/re/re.alg/re.alg.search/basic.pass.cpp1
-rw-r--r--libcxx/test/re/re.const/re.err/error_type.pass.cpp4
-rw-r--r--libcxx/test/re/re.const/re.matchflag/match_flag_type.pass.cpp4
-rw-r--r--libcxx/test/re/re.const/re.synopt/syntax_option_type.pass.cpp4
-rw-r--r--libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.regiter/re.regiter.comp/tested_elsewhere.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.regiter/types.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp2
-rw-r--r--libcxx/test/re/re.iter/re.tokiter/types.pass.cpp2
-rw-r--r--libcxx/test/re/re.regex/re.regex.assign/assign.il.pass.cpp2
-rw-r--r--libcxx/test/re/re.regex/re.regex.assign/il.pass.cpp2
-rw-r--r--libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp4
-rw-r--r--libcxx/test/re/re.submatch/re.submatch.op/compare.pass.cpp82
-rw-r--r--libcxx/test/re/re.submatch/types.pass.cpp2
-rw-r--r--libcxx/test/re/re.traits/iterators.h2
-rw-r--r--libcxx/test/re/re.traits/transform_primary.pass.cpp2
-rw-r--r--libcxx/test/re/test_allocator.h6
21 files changed, 65 insertions, 67 deletions
diff --git a/libcxx/test/re/iterators.h b/libcxx/test/re/iterators.h
index 8ca5e889ec8..3d2f5a8b6ff 100644
--- a/libcxx/test/re/iterators.h
+++ b/libcxx/test/re/iterators.h
@@ -274,4 +274,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base();
}
-#endif
+#endif // ITERATORS_H
diff --git a/libcxx/test/re/re.alg/re.alg.match/basic.pass.cpp b/libcxx/test/re/re.alg/re.alg.match/basic.pass.cpp
index 4aa66833801..06880ee54a2 100644
--- a/libcxx/test/re/re.alg/re.alg.match/basic.pass.cpp
+++ b/libcxx/test/re/re.alg/re.alg.match/basic.pass.cpp
@@ -691,7 +691,6 @@ int main()
assert(m.str(0) == s);
}
-
{
std::wcmatch m;
assert(!std::regex_match(L"a", m, std::wregex()));
diff --git a/libcxx/test/re/re.alg/re.alg.search/basic.pass.cpp b/libcxx/test/re/re.alg/re.alg.search/basic.pass.cpp
index ba147b94d72..c4aa60e351a 100644
--- a/libcxx/test/re/re.alg/re.alg.search/basic.pass.cpp
+++ b/libcxx/test/re/re.alg/re.alg.search/basic.pass.cpp
@@ -781,7 +781,6 @@ int main()
assert(m.str(0) == s);
}
-
{
std::wcmatch m;
assert(!std::regex_search(L"a", m, std::wregex()));
diff --git a/libcxx/test/re/re.const/re.err/error_type.pass.cpp b/libcxx/test/re/re.const/re.err/error_type.pass.cpp
index aab6d62cfcb..06414a34774 100644
--- a/libcxx/test/re/re.const/re.err/error_type.pass.cpp
+++ b/libcxx/test/re/re.const/re.err/error_type.pass.cpp
@@ -12,7 +12,7 @@
// namespace regex_constants
// {
-//
+//
// enum error_type
// {
// error_collate = unspecified,
@@ -29,7 +29,7 @@
// error_complexity = unspecified,
// error_stack = unspecified
// };
-//
+//
// }
#include <regex>
diff --git a/libcxx/test/re/re.const/re.matchflag/match_flag_type.pass.cpp b/libcxx/test/re/re.const/re.matchflag/match_flag_type.pass.cpp
index cf9a7f49cd6..356fc572634 100644
--- a/libcxx/test/re/re.const/re.matchflag/match_flag_type.pass.cpp
+++ b/libcxx/test/re/re.const/re.matchflag/match_flag_type.pass.cpp
@@ -12,7 +12,7 @@
// namespace regex_constants
// {
-//
+//
// emum match_flag_type // bitmask type
// {
// match_default = 0,
@@ -29,7 +29,7 @@
// format_no_copy = unspecified,
// format_first_only = unspecified
// };
-//
+//
// }
#include <regex>
diff --git a/libcxx/test/re/re.const/re.synopt/syntax_option_type.pass.cpp b/libcxx/test/re/re.const/re.synopt/syntax_option_type.pass.cpp
index 205ed84e6ca..473b6e556ce 100644
--- a/libcxx/test/re/re.const/re.synopt/syntax_option_type.pass.cpp
+++ b/libcxx/test/re/re.const/re.synopt/syntax_option_type.pass.cpp
@@ -12,7 +12,7 @@
// namespace regex_constants
// {
-//
+//
// emum syntax_option_type // bitmask type
// {
// icase = unspecified,
@@ -26,7 +26,7 @@
// grep = unspecified,
// egrep = unspecified
// };
-//
+//
// }
#include <regex>
diff --git a/libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp b/libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
index 33b0f7e5d60..126b0d5509d 100644
--- a/libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
+++ b/libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
@@ -29,4 +29,4 @@ int main()
{
test<char>();
test<wchar_t>();
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.iter/re.regiter/re.regiter.comp/tested_elsewhere.pass.cpp b/libcxx/test/re/re.iter/re.regiter/re.regiter.comp/tested_elsewhere.pass.cpp
index aa4e662d87d..76ba75053c9 100644
--- a/libcxx/test/re/re.iter/re.regiter/re.regiter.comp/tested_elsewhere.pass.cpp
+++ b/libcxx/test/re/re.iter/re.regiter/re.regiter.comp/tested_elsewhere.pass.cpp
@@ -16,4 +16,4 @@
int main()
{
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp b/libcxx/test/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
index 8ea1c587566..f68bf194b54 100644
--- a/libcxx/test/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
+++ b/libcxx/test/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
@@ -39,4 +39,4 @@ int main()
++i;
assert(i == std::cregex_iterator());
}
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp b/libcxx/test/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
index 66b3f17b3a2..96d2b546757 100644
--- a/libcxx/test/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
+++ b/libcxx/test/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
@@ -39,4 +39,4 @@ int main()
i++;
assert(i == std::cregex_iterator());
}
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.iter/re.regiter/types.pass.cpp b/libcxx/test/re/re.iter/re.regiter/types.pass.cpp
index b89e29a98a3..1d088030098 100644
--- a/libcxx/test/re/re.iter/re.regiter/types.pass.cpp
+++ b/libcxx/test/re/re.iter/re.regiter/types.pass.cpp
@@ -42,4 +42,4 @@ int main()
{
test<char>();
test<wchar_t>();
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp b/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
index de74babff4c..8c03334ef2e 100644
--- a/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
+++ b/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
@@ -60,5 +60,5 @@ int main()
++i;
assert(i == std::cregex_token_iterator());
}
-#endif
+#endif // _LIBCPP_MOVE
}
diff --git a/libcxx/test/re/re.iter/re.tokiter/types.pass.cpp b/libcxx/test/re/re.iter/re.tokiter/types.pass.cpp
index 75cdae8da88..8245b7e870f 100644
--- a/libcxx/test/re/re.iter/re.tokiter/types.pass.cpp
+++ b/libcxx/test/re/re.iter/re.tokiter/types.pass.cpp
@@ -42,4 +42,4 @@ int main()
{
test<char>();
test<wchar_t>();
-} \ No newline at end of file
+}
diff --git a/libcxx/test/re/re.regex/re.regex.assign/assign.il.pass.cpp b/libcxx/test/re/re.regex/re.regex.assign/assign.il.pass.cpp
index c97a6fae175..d8b395fca6d 100644
--- a/libcxx/test/re/re.regex/re.regex.assign/assign.il.pass.cpp
+++ b/libcxx/test/re/re.regex/re.regex.assign/assign.il.pass.cpp
@@ -29,5 +29,5 @@ int main()
r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended);
assert(r2.flags() == std::regex::extended);
assert(r2.mark_count() == 2);
-#endif
+#endif // _LIBCPP_MOVE
}
diff --git a/libcxx/test/re/re.regex/re.regex.assign/il.pass.cpp b/libcxx/test/re/re.regex/re.regex.assign/il.pass.cpp
index 5a9dc0c6e64..ad91d86b12f 100644
--- a/libcxx/test/re/re.regex/re.regex.assign/il.pass.cpp
+++ b/libcxx/test/re/re.regex/re.regex.assign/il.pass.cpp
@@ -23,5 +23,5 @@ int main()
r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'};
assert(r2.flags() == std::regex::ECMAScript);
assert(r2.mark_count() == 2);
-#endif
+#endif // _LIBCPP_MOVE
}
diff --git a/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp b/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
index 6ced811a051..553b0449be4 100644
--- a/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
+++ b/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
@@ -27,7 +27,7 @@ test(std::initializer_list<char> il, std::regex_constants::syntax_option_type f,
assert(r.mark_count() == mc);
}
-#endif
+#endif // _LIBCPP_MOVE
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, 2);
-#endif
+#endif // _LIBCPP_MOVE
}
diff --git a/libcxx/test/re/re.submatch/re.submatch.op/compare.pass.cpp b/libcxx/test/re/re.submatch/re.submatch.op/compare.pass.cpp
index 404a6c0858c..8c4544dec0b 100644
--- a/libcxx/test/re/re.submatch/re.submatch.op/compare.pass.cpp
+++ b/libcxx/test/re/re.submatch/re.submatch.op/compare.pass.cpp
@@ -14,200 +14,200 @@
// template <class BiIter>
// bool
// operator==(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator!=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>=(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator==(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator!=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator<(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator>(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool operator>=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator<=(const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator==(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator!=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator<(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool operator>(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator>=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter, class ST, class SA>
// bool
// operator<=(const sub_match<BiIter>& lhs,
// const basic_string<typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator==(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator!=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<=(typename iterator_traits<BiIter>::value_type const* lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator==(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator!=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator<(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator>(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator>=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator<=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const* rhs);
-//
+//
// template <class BiIter>
// bool
// operator==(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator!=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<=(typename iterator_traits<BiIter>::value_type const& lhs,
// const sub_match<BiIter>& rhs);
-//
+//
// template <class BiIter>
// bool
// operator==(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs);
-//
+//
// template <class BiIter>
// bool
// operator!=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs);
-//
+//
// template <class BiIter>
// bool
// operator>=(const sub_match<BiIter>& lhs,
// typename iterator_traits<BiIter>::value_type const& rhs);
-//
+//
// template <class BiIter>
// bool
// operator<=(const sub_match<BiIter>& lhs,
diff --git a/libcxx/test/re/re.submatch/types.pass.cpp b/libcxx/test/re/re.submatch/types.pass.cpp
index 358380bae05..2436d181256 100644
--- a/libcxx/test/re/re.submatch/types.pass.cpp
+++ b/libcxx/test/re/re.submatch/types.pass.cpp
@@ -18,7 +18,7 @@
// typedef typename iterator_traits<iterator>::value_type value_type;
// typedef typename iterator_traits<iterator>::difference_type difference_type;
// typedef basic_string<value_type> string_type;
-//
+//
// bool matched;
// ...
// };
diff --git a/libcxx/test/re/re.traits/iterators.h b/libcxx/test/re/re.traits/iterators.h
index 85332ac725d..bbdeede9ff8 100644
--- a/libcxx/test/re/re.traits/iterators.h
+++ b/libcxx/test/re/re.traits/iterators.h
@@ -248,4 +248,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base();
}
-#endif
+#endif // ITERATORS_H
diff --git a/libcxx/test/re/re.traits/transform_primary.pass.cpp b/libcxx/test/re/re.traits/transform_primary.pass.cpp
index 06fe5e7527d..c9ea1eb6a1b 100644
--- a/libcxx/test/re/re.traits/transform_primary.pass.cpp
+++ b/libcxx/test/re/re.traits/transform_primary.pass.cpp
@@ -27,7 +27,7 @@ int main()
const char A[] = "A";
const char Aacute[] = "\xC1";
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.imbue(std::locale("cs_CZ.ISO8859-2"));
assert(t.transform_primary(F(A), F(A+1)) ==
diff --git a/libcxx/test/re/test_allocator.h b/libcxx/test/re/test_allocator.h
index 898c0900d4e..1c0f163d053 100644
--- a/libcxx/test/re/test_allocator.h
+++ b/libcxx/test/re/test_allocator.h
@@ -62,7 +62,7 @@ public:
#ifdef _LIBCPP_MOVE
void construct(pointer p, T&& val)
{::new(p) T(std::move(val));}
-#endif
+#endif // _LIBCPP_MOVE
void destroy(pointer p) {p->~T();}
friend bool operator==(const test_allocator& x, const test_allocator& y)
@@ -105,8 +105,8 @@ public:
#ifdef _LIBCPP_HAS_NO_ADVANCED_SFINAE
std::size_t max_size() const
{return UINT_MAX / sizeof(T);}
-#endif
+#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
};
-#endif
+#endif // TEST_ALLOCATOR_H
OpenPOWER on IntegriCloud