Эх сурвалжийг харах

[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
Stephan T. Lavavej 8 жил өмнө
parent
commit
5d91f314f1
34 өөрчлөгдсөн 36 нэмэгдсэн , 36 устгасан
  1. 1 1
      test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
  2. 1 1
      test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
  3. 1 1
      test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp
  4. 1 1
      test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp
  5. 1 1
      test/std/containers/sequences/list/list.special/swap_noexcept.pass.cpp
  6. 1 1
      test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp
  7. 1 1
      test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp
  8. 1 1
      test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp
  9. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/default.pass.cpp
  10. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/iter.pass.cpp
  11. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/reverse_iterator.pass.cpp
  12. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp
  13. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op!=/test.pass.cpp
  14. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/post.pass.cpp
  15. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/pre.pass.cpp
  16. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op+/difference_type.pass.cpp
  17. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op-/difference_type.pass.cpp
  18. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op.star/op_star.pass.cpp
  19. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op=/reverse_iterator.pass.cpp
  20. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op==/test.pass.cpp
  21. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opdiff/test.pass.cpp
  22. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt/test.pass.cpp
  23. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt=/test.pass.cpp
  24. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt/test.pass.cpp
  25. 1 1
      test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt=/test.pass.cpp
  26. 2 2
      test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
  27. 2 2
      test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
  28. 1 1
      test/std/language.support/support.types/nullptr_t.pass.cpp
  29. 1 1
      test/std/strings/basic.string/string.nonmembers/string.special/swap_noexcept.pass.cpp
  30. 1 1
      test/std/utilities/function.objects/unord.hash/pointer.pass.cpp
  31. 1 1
      test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.single.pass.cpp
  32. 1 1
      test/std/utilities/time/time.duration/time.duration.arithmetic/op_++.pass.cpp
  33. 1 1
      test/std/utilities/time/time.duration/time.duration.arithmetic/op_++int.pass.cpp
  34. 1 1
      test/std/utilities/time/time.duration/time.duration.arithmetic/op_+=.pass.cpp

+ 1 - 1
test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp

@@ -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;

+ 1 - 1
test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp

@@ -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;

+ 1 - 1
test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp

@@ -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&>())), "");

+ 1 - 1
test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp

@@ -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&>())), "");

+ 1 - 1
test/std/containers/sequences/list/list.special/swap_noexcept.pass.cpp

@@ -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&>())), "");

+ 1 - 1
test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp

@@ -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

+ 1 - 1
test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp

@@ -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&>())), "");

+ 1 - 1
test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp

@@ -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
 };

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/default.pass.cpp

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

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/iter.pass.cpp

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

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/reverse_iterator.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op!=/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/post.pass.cpp

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

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/pre.pass.cpp

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

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op+/difference_type.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op-/difference_type.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op.star/op_star.pass.cpp

@@ -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

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op=/reverse_iterator.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op==/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opdiff/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt=/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt/test.pass.cpp

@@ -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>

+ 1 - 1
test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt=/test.pass.cpp

@@ -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>

+ 2 - 2
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp

@@ -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
 

+ 2 - 2
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp

@@ -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
 

+ 1 - 1
test/std/language.support/support.types/nullptr_t.pass.cpp

@@ -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

+ 1 - 1
test/std/strings/basic.string/string.nonmembers/string.special/swap_noexcept.pass.cpp

@@ -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&>())), "");

+ 1 - 1
test/std/utilities/function.objects/unord.hash/pointer.pass.cpp

@@ -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

+ 1 - 1
test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.single.pass.cpp

@@ -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>

+ 1 - 1
test/std/utilities/time/time.duration/time.duration.arithmetic/op_++.pass.cpp

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

+ 1 - 1
test/std/utilities/time/time.duration/time.duration.arithmetic/op_++int.pass.cpp

@@ -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>

+ 1 - 1
test/std/utilities/time/time.duration/time.duration.arithmetic/op_+=.pass.cpp

@@ -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>