mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 07:51:39 +08:00
[libcxx] [test] Change comments to say C++ instead of c++. NFC.
This makes them consistent (many comments already used uppercase). The special REQUIRES, UNSUPPORTED, and XFAIL comments are excluded from this change. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@309468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,7 +26,7 @@ int main()
|
||||
int ia[] = {0, 1, 2, 2, 0, 1, 2, 3};
|
||||
const unsigned sa = sizeof(ia)/sizeof(ia[0]);
|
||||
int ib[] = {0, 1, 2, 3, 0, 1, 2, 3};
|
||||
const unsigned sb = sizeof(ib)/sizeof(ib[0]); ((void)sb); // unused in c++11
|
||||
const unsigned sb = sizeof(ib)/sizeof(ib[0]); ((void)sb); // unused in C++11
|
||||
|
||||
typedef input_iterator<const int*> II;
|
||||
typedef random_access_iterator<const int*> RAI;
|
||||
|
@@ -32,7 +32,7 @@ int main()
|
||||
int ia[] = {0, 1, 2, 2, 0, 1, 2, 3};
|
||||
const unsigned sa = sizeof(ia)/sizeof(ia[0]);
|
||||
int ib[] = {0, 1, 2, 3, 0, 1, 2, 3};
|
||||
const unsigned sb = sizeof(ib)/sizeof(ib[0]); ((void)sb); // unused in c++11
|
||||
const unsigned sb = sizeof(ib)/sizeof(ib[0]); ((void)sb); // unused in C++11
|
||||
|
||||
typedef input_iterator<const int*> II;
|
||||
typedef random_access_iterator<const int*> RAI;
|
||||
|
@@ -72,7 +72,7 @@ int main()
|
||||
{
|
||||
typedef std::deque<MoveOnly, some_alloc<MoveOnly>> C;
|
||||
#if TEST_STD_VER >= 14
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#else
|
||||
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
|
@@ -72,7 +72,7 @@ int main()
|
||||
{
|
||||
typedef std::forward_list<MoveOnly, some_alloc<MoveOnly>> C;
|
||||
#if TEST_STD_VER >= 14
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#else
|
||||
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
|
@@ -72,7 +72,7 @@ int main()
|
||||
{
|
||||
typedef std::list<MoveOnly, some_alloc<MoveOnly>> C;
|
||||
#if TEST_STD_VER >= 14
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#else
|
||||
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
|
@@ -72,7 +72,7 @@ int main()
|
||||
{
|
||||
#if TEST_STD_VER >= 14
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
typedef std::vector<bool, some_alloc<bool>> C;
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#endif // _LIBCPP_VERSION
|
||||
|
@@ -73,7 +73,7 @@ int main()
|
||||
{
|
||||
typedef std::vector<MoveOnly, some_alloc<MoveOnly>> C;
|
||||
#if TEST_STD_VER >= 14
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#else
|
||||
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
|
@@ -33,7 +33,7 @@ struct Noisy {
|
||||
Noisy(Noisy const&) = delete;
|
||||
#else
|
||||
// FIXME: This test depends on copy elision taking place in C++14
|
||||
// (pre-c++17 guaranteed copy elision)
|
||||
// (pre-C++17 guaranteed copy elision)
|
||||
Noisy(Noisy const&);
|
||||
#endif
|
||||
};
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
// constexpr reverse_iterator();
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
// explicit constexpr reverse_iterator(Iter x);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// requires HasConstructor<Iter, const U&>
|
||||
// constexpr reverse_iterator(const reverse_iterator<U> &u);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr reverse_iterator<Iterator>
|
||||
// make_reverse_iterator(Iterator i);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator!=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
// constexpr reverse_iterator operator++(int);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
// constexpr reverse_iterator& operator++();
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -14,7 +14,7 @@
|
||||
// requires RandomAccessIterator<Iter>
|
||||
// constexpr reverse_iterator operator+(difference_type n) const;
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -14,7 +14,7 @@
|
||||
// requires RandomAccessIterator<Iter>
|
||||
// constexpr reverse_iterator operator-(difference_type n) const;
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
// constexpr reference operator*() const;
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
// Be sure to respect LWG 198:
|
||||
// http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#198
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr reverse_iterator&
|
||||
// operator=(const reverse_iterator<U>& u);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator==(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr auto operator-(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y)
|
||||
// -> decltype(y.base() - x.base());
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cstddef>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator>(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator>=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator<(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// constexpr bool
|
||||
// operator<=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
|
||||
//
|
||||
// constexpr in c++17
|
||||
// constexpr in C++17
|
||||
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
|
@@ -11,12 +11,12 @@
|
||||
|
||||
// UNSUPPORTED: sanitizer-new-delete, c++98, c++03, c++11
|
||||
|
||||
// NOTE: Clang does not enable sized-deallocation in c++14 and beyond by
|
||||
// NOTE: Clang does not enable sized-deallocation in C++14 and beyond by
|
||||
// default. It is only enabled when -fsized-deallocation is given.
|
||||
// (except clang-3.6 which temporarily enabled sized-deallocation)
|
||||
// UNSUPPORTED: clang, apple-clang
|
||||
|
||||
// NOTE: GCC 4.9.1 does not support sized-deallocation in c++14. However
|
||||
// NOTE: GCC 4.9.1 does not support sized-deallocation in C++14. However
|
||||
// GCC 5.1 does.
|
||||
// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9
|
||||
|
||||
|
@@ -11,12 +11,12 @@
|
||||
|
||||
// UNSUPPORTED: sanitizer-new-delete, c++98, c++03, c++11
|
||||
|
||||
// NOTE: Clang does not enable sized-deallocation in c++14 and beyond by
|
||||
// NOTE: Clang does not enable sized-deallocation in C++14 and beyond by
|
||||
// default. It is only enabled when -fsized-deallocation is given.
|
||||
// (except clang-3.6 which temporarily enabled sized-deallocation)
|
||||
// UNSUPPORTED: clang, apple-clang
|
||||
|
||||
// NOTE: GCC 4.9.1 does not support sized-deallocation in c++14. However
|
||||
// NOTE: GCC 4.9.1 does not support sized-deallocation in C++14. However
|
||||
// GCC 5.1 does.
|
||||
// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9
|
||||
|
||||
|
@@ -91,7 +91,7 @@ int main()
|
||||
{
|
||||
#ifdef _LIBCPP_HAS_NO_NULLPTR
|
||||
static_assert(!has_less<std::nullptr_t>::value, "");
|
||||
// FIXME: our c++03 nullptr emulation still allows for comparisons
|
||||
// FIXME: our C++03 nullptr emulation still allows for comparisons
|
||||
// with other pointer types by way of the conversion operator.
|
||||
//static_assert(!has_less<void*>::value, "");
|
||||
#else
|
||||
|
@@ -68,7 +68,7 @@ int main()
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, some_alloc<char>> C;
|
||||
#if TEST_STD_VER >= 14
|
||||
// In c++14, if POCS is set, swapping the allocator is required not to throw
|
||||
// In C++14, if POCS is set, swapping the allocator is required not to throw
|
||||
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
#else
|
||||
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
|
||||
|
@@ -41,7 +41,7 @@ test()
|
||||
assert(h(&i) != h(&j));
|
||||
}
|
||||
|
||||
// can't hash nullptr_t until c++17
|
||||
// can't hash nullptr_t until C++17
|
||||
void test_nullptr()
|
||||
{
|
||||
#if TEST_STD_VER > 14
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
// Test unique_ptr converting move ctor
|
||||
|
||||
// NOTE: unique_ptr does not provide converting constructors in c++03
|
||||
// NOTE: unique_ptr does not provide converting constructors in C++03
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <memory>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
// duration
|
||||
|
||||
// constexpr duration& operator++(); // constexpr in c++17
|
||||
// constexpr duration& operator++(); // constexpr in C++17
|
||||
|
||||
#include <chrono>
|
||||
#include <cassert>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
// duration
|
||||
|
||||
// constexpr duration operator++(int); // constexpr in c++17
|
||||
// constexpr duration operator++(int); // constexpr in C++17
|
||||
|
||||
#include <chrono>
|
||||
#include <cassert>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
// duration
|
||||
|
||||
// constexpr duration& operator+=(const duration& d); // constexpr in c++17
|
||||
// constexpr duration& operator+=(const duration& d); // constexpr in C++17
|
||||
|
||||
#include <chrono>
|
||||
#include <cassert>
|
||||
|
Reference in New Issue
Block a user