[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:
Stephan T. Lavavej
2017-07-29 00:55:35 +00:00
parent cf230766ee
commit 5d91f314f1
34 changed files with 36 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ int main()
int ia[] = {0, 1, 2, 2, 0, 1, 2, 3}; int ia[] = {0, 1, 2, 2, 0, 1, 2, 3};
const unsigned sa = sizeof(ia)/sizeof(ia[0]); const unsigned sa = sizeof(ia)/sizeof(ia[0]);
int ib[] = {0, 1, 2, 3, 0, 1, 2, 3}; 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 input_iterator<const int*> II;
typedef random_access_iterator<const int*> RAI; typedef random_access_iterator<const int*> RAI;

View File

@@ -32,7 +32,7 @@ int main()
int ia[] = {0, 1, 2, 2, 0, 1, 2, 3}; int ia[] = {0, 1, 2, 2, 0, 1, 2, 3};
const unsigned sa = sizeof(ia)/sizeof(ia[0]); const unsigned sa = sizeof(ia)/sizeof(ia[0]);
int ib[] = {0, 1, 2, 3, 0, 1, 2, 3}; 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 input_iterator<const int*> II;
typedef random_access_iterator<const int*> RAI; typedef random_access_iterator<const int*> RAI;

View File

@@ -72,7 +72,7 @@ int main()
{ {
typedef std::deque<MoveOnly, some_alloc<MoveOnly>> C; typedef std::deque<MoveOnly, some_alloc<MoveOnly>> C;
#if TEST_STD_VER >= 14 #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&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#else #else
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");

View File

@@ -72,7 +72,7 @@ int main()
{ {
typedef std::forward_list<MoveOnly, some_alloc<MoveOnly>> C; typedef std::forward_list<MoveOnly, some_alloc<MoveOnly>> C;
#if TEST_STD_VER >= 14 #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&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#else #else
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");

View File

@@ -72,7 +72,7 @@ int main()
{ {
typedef std::list<MoveOnly, some_alloc<MoveOnly>> C; typedef std::list<MoveOnly, some_alloc<MoveOnly>> C;
#if TEST_STD_VER >= 14 #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&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#else #else
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");

View File

@@ -72,7 +72,7 @@ int main()
{ {
#if TEST_STD_VER >= 14 #if TEST_STD_VER >= 14
#if defined(_LIBCPP_VERSION) #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; typedef std::vector<bool, some_alloc<bool>> C;
static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#endif // _LIBCPP_VERSION #endif // _LIBCPP_VERSION

View File

@@ -73,7 +73,7 @@ int main()
{ {
typedef std::vector<MoveOnly, some_alloc<MoveOnly>> C; typedef std::vector<MoveOnly, some_alloc<MoveOnly>> C;
#if TEST_STD_VER >= 14 #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&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#else #else
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");

View File

@@ -33,7 +33,7 @@ struct Noisy {
Noisy(Noisy const&) = delete; Noisy(Noisy const&) = delete;
#else #else
// FIXME: This test depends on copy elision taking place in C++14 // 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&); Noisy(Noisy const&);
#endif #endif
}; };

View File

@@ -13,7 +13,7 @@
// constexpr reverse_iterator(); // constexpr reverse_iterator();
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>

View File

@@ -13,7 +13,7 @@
// explicit constexpr reverse_iterator(Iter x); // explicit constexpr reverse_iterator(Iter x);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -15,7 +15,7 @@
// requires HasConstructor<Iter, const U&> // requires HasConstructor<Iter, const U&>
// constexpr reverse_iterator(const reverse_iterator<U> &u); // constexpr reverse_iterator(const reverse_iterator<U> &u);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr reverse_iterator<Iterator> // constexpr reverse_iterator<Iterator>
// make_reverse_iterator(Iterator i); // make_reverse_iterator(Iterator i);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator!=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator!=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -13,7 +13,7 @@
// constexpr reverse_iterator operator++(int); // constexpr reverse_iterator operator++(int);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -13,7 +13,7 @@
// constexpr reverse_iterator& operator++(); // constexpr reverse_iterator& operator++();
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -14,7 +14,7 @@
// requires RandomAccessIterator<Iter> // requires RandomAccessIterator<Iter>
// constexpr reverse_iterator operator+(difference_type n) const; // constexpr reverse_iterator operator+(difference_type n) const;
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -14,7 +14,7 @@
// requires RandomAccessIterator<Iter> // requires RandomAccessIterator<Iter>
// constexpr reverse_iterator operator-(difference_type n) const; // constexpr reverse_iterator operator-(difference_type n) const;
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -13,7 +13,7 @@
// constexpr reference operator*() const; // constexpr reference operator*() const;
// //
// constexpr in c++17 // constexpr in C++17
// Be sure to respect LWG 198: // Be sure to respect LWG 198:
// http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#198 // http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#198

View File

@@ -16,7 +16,7 @@
// constexpr reverse_iterator& // constexpr reverse_iterator&
// operator=(const reverse_iterator<U>& u); // operator=(const reverse_iterator<U>& u);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator==(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator==(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr auto operator-(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y) // constexpr auto operator-(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y)
// -> decltype(y.base() - x.base()); // -> decltype(y.base() - x.base());
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cstddef> #include <cstddef>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator>(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator>(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator>=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator>=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator<(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator<(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -16,7 +16,7 @@
// constexpr bool // constexpr bool
// operator<=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y); // operator<=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
// //
// constexpr in c++17 // constexpr in C++17
#include <iterator> #include <iterator>
#include <cassert> #include <cassert>

View File

@@ -11,12 +11,12 @@
// UNSUPPORTED: sanitizer-new-delete, c++98, c++03, c++11 // 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. // default. It is only enabled when -fsized-deallocation is given.
// (except clang-3.6 which temporarily enabled sized-deallocation) // (except clang-3.6 which temporarily enabled sized-deallocation)
// UNSUPPORTED: clang, apple-clang // 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. // GCC 5.1 does.
// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9 // XFAIL: gcc-4.7, gcc-4.8, gcc-4.9

View File

@@ -11,12 +11,12 @@
// UNSUPPORTED: sanitizer-new-delete, c++98, c++03, c++11 // 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. // default. It is only enabled when -fsized-deallocation is given.
// (except clang-3.6 which temporarily enabled sized-deallocation) // (except clang-3.6 which temporarily enabled sized-deallocation)
// UNSUPPORTED: clang, apple-clang // 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. // GCC 5.1 does.
// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9 // XFAIL: gcc-4.7, gcc-4.8, gcc-4.9

View File

@@ -91,7 +91,7 @@ int main()
{ {
#ifdef _LIBCPP_HAS_NO_NULLPTR #ifdef _LIBCPP_HAS_NO_NULLPTR
static_assert(!has_less<std::nullptr_t>::value, ""); 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. // with other pointer types by way of the conversion operator.
//static_assert(!has_less<void*>::value, ""); //static_assert(!has_less<void*>::value, "");
#else #else

View File

@@ -68,7 +68,7 @@ int main()
{ {
typedef std::basic_string<char, std::char_traits<char>, some_alloc<char>> C; typedef std::basic_string<char, std::char_traits<char>, some_alloc<char>> C;
#if TEST_STD_VER >= 14 #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&>())), ""); static_assert( noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
#else #else
static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");

View File

@@ -41,7 +41,7 @@ test()
assert(h(&i) != h(&j)); assert(h(&i) != h(&j));
} }
// can't hash nullptr_t until c++17 // can't hash nullptr_t until C++17
void test_nullptr() void test_nullptr()
{ {
#if TEST_STD_VER > 14 #if TEST_STD_VER > 14

View File

@@ -14,7 +14,7 @@
// Test unique_ptr converting move ctor // 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 // UNSUPPORTED: c++98, c++03
#include <memory> #include <memory>

View File

@@ -11,7 +11,7 @@
// duration // duration
// constexpr duration& operator++(); // constexpr in c++17 // constexpr duration& operator++(); // constexpr in C++17
#include <chrono> #include <chrono>
#include <cassert> #include <cassert>

View File

@@ -11,7 +11,7 @@
// duration // duration
// constexpr duration operator++(int); // constexpr in c++17 // constexpr duration operator++(int); // constexpr in C++17
#include <chrono> #include <chrono>
#include <cassert> #include <cassert>

View File

@@ -11,7 +11,7 @@
// duration // duration
// constexpr duration& operator+=(const duration& d); // constexpr in c++17 // constexpr duration& operator+=(const duration& d); // constexpr in C++17
#include <chrono> #include <chrono>
#include <cassert> #include <cassert>