Improve docs for Library Fundamentals TS
authorJonathan Wakely <jwakely@redhat.com>
Thu, 2 May 2019 15:46:29 +0000 (16:46 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 2 May 2019 15:46:29 +0000 (16:46 +0100)
* doc/doxygen/doxygroups.cc: Move description of experimental group
here.
* include/experimental/algorithm: Add to libfund-ts doc group.
* include/experimental/any: Likewise. Do not document implementation
details.
* include/experimental/array: Add to libfund-ts doc group.
* include/experimental/bits/lfts_config.h: Define libfund-ts doc group
for Library Fundamentals.
* include/experimental/chrono: Add to libfund-ts doc group.
* include/experimental/deque: Likewise.
* include/experimental/forward_list: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/iterator: Likewise.
* include/experimental/list: Likewise.
* include/experimental/map: Likewise.
* include/experimental/memory: Likewise.
* include/experimental/memory_resource: Likewise. Improve docs.
details.
* include/experimental/numeric: Add to libfund-ts doc group.
* include/experimental/optional: Likewise.
* include/experimental/propagate_const: Likewise.
* include/experimental/random: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/regex: Likewise.
* include/experimental/set: Likewise.
* include/experimental/source_location: Likewise.
* include/experimental/string: Likewise.
* include/experimental/string_view: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/unordered_map: Likewise.
* include/experimental/unordered_set: Likewise.
* include/experimental/utility: Likewise.
* include/experimental/vector: Likewise.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
* testsuite/experimental/array/neg.cc: Adjust dg-error.
* testsuite/experimental/propagate_const/assignment/move_neg.cc:
Likewise.
* testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
* testsuite/experimental/propagate_const/requirements2.cc: Likewise.
* testsuite/experimental/propagate_const/requirements3.cc: Likewise.
* testsuite/experimental/propagate_const/requirements4.cc: Likewise.
* testsuite/experimental/propagate_const/requirements5.cc: Likewise.

From-SVN: r270809

40 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/doc/doxygen/doxygroups.cc
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/include/experimental/any
libstdc++-v3/include/experimental/array
libstdc++-v3/include/experimental/bits/lfts_config.h
libstdc++-v3/include/experimental/chrono
libstdc++-v3/include/experimental/deque
libstdc++-v3/include/experimental/forward_list
libstdc++-v3/include/experimental/functional
libstdc++-v3/include/experimental/iterator
libstdc++-v3/include/experimental/list
libstdc++-v3/include/experimental/map
libstdc++-v3/include/experimental/memory
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/include/experimental/numeric
libstdc++-v3/include/experimental/optional
libstdc++-v3/include/experimental/propagate_const
libstdc++-v3/include/experimental/random
libstdc++-v3/include/experimental/ratio
libstdc++-v3/include/experimental/regex
libstdc++-v3/include/experimental/set
libstdc++-v3/include/experimental/source_location
libstdc++-v3/include/experimental/string
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/experimental/system_error
libstdc++-v3/include/experimental/tuple
libstdc++-v3/include/experimental/type_traits
libstdc++-v3/include/experimental/unordered_map
libstdc++-v3/include/experimental/unordered_set
libstdc++-v3/include/experimental/utility
libstdc++-v3/include/experimental/vector
libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc
libstdc++-v3/testsuite/experimental/array/neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/assignment/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/cons/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements2.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements3.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements4.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements5.cc

index b22563dcb826c863ab75f419c1b49d8088cb71d5..f5f6e74ce9223d7e4e80e48c10555e83e43880ce 100644 (file)
@@ -1,5 +1,50 @@
 2019-05-02  Jonathan Wakely  <jwakely@redhat.com>
 
+       * doc/doxygen/doxygroups.cc: Move description of experimental group
+       here.
+       * include/experimental/algorithm: Add to libfund-ts doc group.
+       * include/experimental/any: Likewise. Do not document implementation
+       details.
+       * include/experimental/array: Add to libfund-ts doc group.
+       * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
+       for Library Fundamentals.
+       * include/experimental/chrono: Add to libfund-ts doc group.
+       * include/experimental/deque: Likewise.
+       * include/experimental/forward_list: Likewise.
+       * include/experimental/functional: Likewise.
+       * include/experimental/iterator: Likewise.
+       * include/experimental/list: Likewise.
+       * include/experimental/map: Likewise.
+       * include/experimental/memory: Likewise.
+       * include/experimental/memory_resource: Likewise. Improve docs.
+       details.
+       * include/experimental/numeric: Add to libfund-ts doc group.
+       * include/experimental/optional: Likewise.
+       * include/experimental/propagate_const: Likewise.
+       * include/experimental/random: Likewise.
+       * include/experimental/ratio: Likewise.
+       * include/experimental/regex: Likewise.
+       * include/experimental/set: Likewise.
+       * include/experimental/source_location: Likewise.
+       * include/experimental/string: Likewise.
+       * include/experimental/string_view: Likewise.
+       * include/experimental/system_error: Likewise.
+       * include/experimental/tuple: Likewise.
+       * include/experimental/type_traits: Likewise.
+       * include/experimental/unordered_map: Likewise.
+       * include/experimental/unordered_set: Likewise.
+       * include/experimental/utility: Likewise.
+       * include/experimental/vector: Likewise.
+       * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
+       * testsuite/experimental/array/neg.cc: Adjust dg-error.
+       * testsuite/experimental/propagate_const/assignment/move_neg.cc:
+       Likewise.
+       * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
+
        * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
        * include/experimental/bits/fs_fwd.h: Improve docs.
        * include/experimental/bits/fs_ops.h: fix Doxygen markup.
index 6822eac8070dc652c0cde4cbd7175574618276fe..630e02296edc2b9633968e331e4bd16e55ad1513 100644 (file)
@@ -160,3 +160,15 @@ summarized in <a href="tables.html">tables</a>.  */
  * Components for concurrent operations, including threads, mutexes,
  * and condition variables.
  */
+
+/**
+ * @defgroup experimental Technical Specifications
+ *
+ * Components specified by various Technical Specifications.
+ *
+ * As indicated by the std::experimental namespace and the header paths,
+ * the contents of these Technical Specifications are experimental and not
+ * part of the C++ standard. As such the interfaces and implementations may
+ * change in the future, and there is <STRONG> no guarantee of compatibility
+ * between different GCC releases </STRONG> for these features.
+ */
index de62c73d55fddced7a12913069d1cb275f097b84..8ba212c5132f743c8e44c5df8eef3ef258544302 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/algorithm
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_ALGORITHM
index ed7a115f6b2b894821e5081883081bebc2208c8d..a6e0fc683d9ecd5356d44a07baa94d0dc25f01df 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/any
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_ANY
@@ -49,7 +50,7 @@ inline namespace fundamentals_v1
 {
   /**
    * @defgroup any Type-safe container of any type
-   * @ingroup experimental
+   * @ingroup libfund-ts
    *
    * A type-safe container for single values of value types, as
    * described in n3804 "Any Library Proposal (Revision 3)".
@@ -69,6 +70,7 @@ inline namespace fundamentals_v1
     virtual const char* what() const noexcept { return "bad any_cast"; }
   };
 
+  /// @cond undocumented
   [[gnu::noreturn]] inline void __throw_bad_any_cast()
   {
 #if __cpp_exceptions
@@ -77,6 +79,7 @@ inline namespace fundamentals_v1
     __builtin_abort();
 #endif
   }
+  /// @endcond
 
   /**
    *  @brief A type-safe container of any type.
@@ -410,6 +413,7 @@ inline namespace fundamentals_v1
     }
   // @}
 
+  /// @cond undocumented
   template<typename _Tp>
     void* __any_caster(const any* __any)
     {
@@ -422,6 +426,7 @@ inline namespace fundamentals_v1
       __any->_M_manager(any::_Op_access, __any, &__arg);
       return __arg._M_obj;
     }
+  /// @endcond
 
   /**
    * @brief Access the contained object.
index 3fece23331954701b117feccf4d955da9da6ccc8..5a35fd499d89916a8282a5d3a499639accb3fa1e 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/array
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_ARRAY
@@ -47,7 +48,7 @@ inline namespace fundamentals_v2
 #define __cpp_lib_experimental_make_array 201505
   /**
    * @defgroup make_array Array creation functions
-   * @ingroup experimental
+   * @ingroup libfund-ts
    *
    * Array creation functions as described in N4529,
    * Working Draft, C++ Extensions for Library Fundamentals, Version 2
@@ -78,6 +79,7 @@ template<typename... _Types>
                   "any of the arguments is a reference_wrapper");
   };
 
+/// Create a std::array from a variable-length list of arguments.
 template <typename _Dest = void, typename... _Types>
   constexpr
   array<typename __make_array_elem<_Dest, _Types...>::type, sizeof...(_Types)>
@@ -93,6 +95,7 @@ template <typename _Tp, size_t _Nm, size_t... _Idx>
     return {{__a[_Idx]...}};
   }
 
+/// Create a std::array from an array.
 template <typename _Tp, size_t _Nm>
   constexpr array<remove_cv_t<_Tp>, _Nm>
   to_array(_Tp (&__a)[_Nm])
index cf0cd1dea798962ab8d9c0c2d8d0ed5643235217..8fc67054c5536815610f358de78d16686968a27f 100644 (file)
 #if __cplusplus >= 201402L
 #include <bits/c++config.h>
 
+  /** @defgroup libfund-ts Library Fundamentals TS
+   *  @ingroup experimental
+   *
+   * Components defined by the _C++ Extensions for Library Fundamentals_
+   * Technical Specification, versions 1 and 2.
+   *
+   * ISO/IEC TS 19568:2015 C++ Extensions for Library Fundamentals
+   *
+   * ISO/IEC TS 19568:2017 C++ Extensions for Library Fundamentals, Version 2
+   */
+
 #if _GLIBCXX_INLINE_VERSION
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 90fb39f7582cfb0e8238c7f9ee1fe6ee12a27bc2..0e41321cc27e3fdd02ac9c286a195bcf2293bb95 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/chrono
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index 2298674d70b6016e1bb83a4f572e8851d8f46e33..3a2be39e58f818d272564054a15fb48b944287b8 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/deque
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_DEQUE
index f6ffbf0a0af53f9b75a12e2483a1b84c2524630a..3cee24d2429feb0afac12e0a0d1c2ec72596ce73 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/forward_list
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_FORWARD_LIST
index 90f2652c29b04f0436e2b8af2d5f074b87170c09..28a5708f37794c5c38a16a4507f9dae669cedb6a 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/functional
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_FUNCTIONAL
index f2e10b2206956357e7caf6c44ea188f636bd5607..ff367955bc61987156e2999829e1172255c969cf 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/iterator
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index 2b7a331e63afb5ae3ada99ff0815f61482f164ab..ae9269922ac148a87c66425ef5c91205c361f612 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/list
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_LIST
index 58bf93a891b71ffb4b6ae54c9c057cd40db2b4fd..82bc493af44f0a05ce42b8d05cae79195dc5976d 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/map
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_MAP
index b8faeb23eef70a80224e9f8b3ed43058d31cab77..a59394b358361633db4562828a9a00cb163284ba 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/memory
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index e9fece55cd0233785aba5179fe7aedd88b04494e..a0b3063215451e0cc123d63f8b50de3ed2bb18ec 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/memory_resource
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_MEMORY_RESOURCE
 #include <ext/new_allocator.h>
 #include <debug/assertions.h>
 
+/// @cond
 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<typename _Tp> class malloc_allocator;
 _GLIBCXX_END_NAMESPACE_VERSION
 } // namespace __gnu_cxx
+/// @endcond
 
 namespace std {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -259,6 +262,7 @@ namespace pmr {
     { return !(__a == __b); }
 
 
+  /// @cond undocumented
   class __resource_adaptor_common
   {
     template<typename, typename> friend class __resource_adaptor_imp;
@@ -372,6 +376,7 @@ namespace pmr {
       : std::alignment_of<std::max_align_t>::type { };
 #endif
   };
+  /// @endcond
 
   // 8.7.1 __resource_adaptor_imp
   template<typename _Alloc, typename _Resource>
@@ -501,6 +506,7 @@ namespace pmr {
 
   // The default memory resource
 
+  /// @cond undocumented
   inline std::atomic<memory_resource*>&
   __get_default_resource()
   {
@@ -509,11 +515,14 @@ namespace pmr {
     static type* __r = new(__buf) type(new_delete_resource());
     return *__r;
   }
+  /// @endcond
 
+  /// Get the current default resource.
   inline memory_resource*
   get_default_resource() noexcept
   { return __get_default_resource().load(); }
 
+  /// Change the default resource and return the previous one.
   inline memory_resource*
   set_default_resource(memory_resource* __r) noexcept
   {
index e5123a993d4b467915ca68f1a98595121a1cd894..aa5ba7ffbe16d5c9c66e5e22e7b69c48560416a4 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/numeric
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index f465eca96f015cee63c7e9a76980af1889c21482..9a0112de854155195e61cb64f00eb61a7890b2aa 100644 (file)
 
 /** @file experimental/optional
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_OPTIONAL
 #define _GLIBCXX_EXPERIMENTAL_OPTIONAL 1
 
-/**
- * @defgroup experimental Experimental
- *
- * Components specified by various Technical Specifications.
- *
- * As indicated by the std::experimental namespace and the  header paths,
- * the contents of these Technical Specifications are experimental and not
- * part of the C++ standard. As such the interfaces and implementations may
- * change in the future, and there is <STRONG> no guarantee of compatibility
- * between different GCC releases </STRONG> for these features.
- */
-
 #if __cplusplus >= 201402L
 
 #include <utility>
@@ -63,7 +52,7 @@ inline namespace fundamentals_v1
 {
   /**
    * @defgroup optional Optional values
-   * @ingroup experimental
+   * @ingroup libfund-ts
    *
    * Class template for optional values and surrounding facilities, as
    * described in n3793 "A proposal to add a utility class to represent
index a28bed7874637fd40bf837993fc0abbe5648cd3f..dcdfca46fed66cc509ae45faf578aa8ebff6ca95 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/propagate_const
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_PROPAGATE_CONST
@@ -49,7 +50,7 @@ inline namespace fundamentals_v2
 {
   /**
    * @defgroup propagate_const Const-propagating wrapper
-   * @ingroup experimental
+   * @ingroup libfund-ts
    *
    * A const-propagating wrapper that propagates const to pointer-like members,
    * as described in n4388 "A Proposal to Add a Const-Propagating Wrapper
@@ -58,7 +59,7 @@ inline namespace fundamentals_v2
    * @{
    */
 
-/// Const-propagating wrapper.
+  /// Const-propagating wrapper.
   template <typename _Tp>
     class propagate_const
     {
index 7176c80f7ea0afcf17fabf5a6b979bf3ddf8613f..2d4b83df6257ad49b22c133aba5958da09f95c41 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/random
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_RANDOM
index 6129d1ea36a9c4f055a7b60ed851983799e1bb64..3e12af51463c62c0c4887f04b730fb9ef9351e22 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/ratio
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index 6d0ee9aa373ae713c827ecfc221d1c4f9f9fcf2d..71f0ab9c4de6728f56c7911a3a6c6de645e03a3f 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/regex
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_REGEX
index 145ca27815d7bd9e2d4ccba6b8b19fc03de67d57..e55922e7e6f9804192028af62f856cc14c6d77b5 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/set
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_SET
index 9fa3c4bb9a7c40389e6ef96b64a7543be0e2549f..801a1c948a7aebc07cb461d1be6c826b2ba58220 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/source_location
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_SRCLOC
index 65bf2b8d0097aeed1eb100be7852f8715ad11e5a..838af850b5254f8624210550a143476f7046f4eb 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/string
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_STRING
index 9e810dec8445c32c31df23df797594201343090e..9449869367c4d752db8124debaf3551926a0c08d 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/string_view
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
@@ -57,7 +58,7 @@ inline namespace fundamentals_v1
    *
    *  @ingroup strings
    *  @ingroup sequences
-   *  @ingroup experimental
+   *  @ingroup libfund-ts
    *
    *  @tparam _CharT  Type of character
    *  @tparam _Traits  Traits for character type, defaults to
index 73640a40161f67e77f8636cc1fb27ab9a9d4497d..ac91c9a4b1799439c5bd6ac19524a5850b58c85c 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/system_error
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index be42b588131c65f8e07bb04d0d6050937a2d10a2..8a56fbc6732b1faeceb3d720a0614c1bbead0e3d 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/tuple
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_TUPLE
index ab1ba92c3c6ff2f2201a710aebd693001ddf054e..09743c5e92be35fd07e817fd82468d67dc96f1d5 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/type_traits
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 //
index 74a360c1c9c1df5dcf8b1940093f626351487de4..7807959995737e0548c6f919d5eee0d1dacbc60f 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/unordered_map
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_UNORDERED_MAP
index a84cf6aa3d8e49a90571f67ca4fb9501949114f8..53e6d24c7354dd5fa3afe8f47feaba1e06088a98 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/unordered_set
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_UNORDERED_SET
index fff7bdbb892d4b9dcc6be081b4cdae5fda318a3b..635bffa1c6e20a707a10f0cee905d679d6f596f0 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/utility
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_UTILITY
index 965b9036b6d3494e3fb95c39d13861f08bd14039..df107d5bab6e788ee69cca69a9bc421179c025cc 100644 (file)
@@ -24,6 +24,7 @@
 
 /** @file experimental/vector
  *  This is a TS C++ Library header.
+ *  @ingroup libfund-ts
  */
 
 #ifndef _GLIBCXX_EXPERIMENTAL_VECTOR
index 145e0be0ed40bc1383fcecafabda60ed4de8db4b..8498c74002920682bc43d591325ca646cb6e4270 100644 (file)
@@ -25,5 +25,6 @@ void test01()
   using std::experimental::any_cast;
 
   const any y(1);
-  any_cast<int&>(y); // { dg-error "qualifiers" "" { target { *-*-* } } 357 }
+  any_cast<int&>(y); // { dg-error "here" }
+  // { dg-error "discards qualifiers" "" { target { *-*-* } } 0 }
 }
index 75190d7ca7ac06c313133fb4c20b96a5a0029a51..a602dc8ef4e4cb4c662903683f690e000720285e 100644 (file)
@@ -24,5 +24,5 @@ int main()
 {
   int dummy;
   auto bad = std::experimental::make_array(std::ref(dummy));
-  // { dg-error "explicit target type" "" { target *-*-* } 76 }
+  // { dg-error "explicit target type" "" { target *-*-* } 0 }
 }
index 3deef6b99046d5a58fa5fb58615fd312bad5e531..84e8baae26d1d1c01564cdfe257428da0b851f8a 100644 (file)
@@ -25,8 +25,6 @@
 using std::experimental::propagate_const;
 using std::unique_ptr;
 
-// { dg-error "no type" "" { target *-*-* } 160 }
-
 int main()
 {
   propagate_const<unique_ptr<const int>> test5;
@@ -35,3 +33,4 @@ int main()
   propagate_const<unique_ptr<const int>> test6;
   test6 = dummy2; // { dg-error "no match" }
 }
+// { dg-prune-output "no type" }
index e384fe9614336e666b8e22260691576ded03b2f2..d4bd4dd34eaaae8fa486e66708a69a6a2a2d346f 100644 (file)
 using std::experimental::propagate_const;
 using std::unique_ptr;
 
-// { dg-error "no type" "" { target *-*-* } 118 }
-// { dg-error "no type" "" { target *-*-* } 125 }
-// { dg-error "no type" "" { target *-*-* } 134 }
-// { dg-error "no type" "" { target *-*-* } 143 }
-
 int main()
 {
   const int dummy{42};
@@ -39,3 +34,4 @@ int main()
   propagate_const<unique_ptr<const int>> test4 = &dummy; // { dg-error "conversion" }
   propagate_const<unique_ptr<const int>> test5 = std::move(test1); // { dg-error "conversion" }
 }
+// { dg-prune-output "no type" }
index 29b63eae67efa6e6516045a85f3de507932e7646..11d6bfd1b68a9c7763e39236dffe704529929026 100644 (file)
@@ -21,9 +21,8 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-// { dg-error "not a pointer-to-object type" "" { target *-*-* } 66 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 187 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 213 }
-
 propagate_const<void*> test1;
+
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 0 }
+// { dg-prune-output "forming pointer to reference type" }
+// { dg-prune-output "not a pointer-to-object type" }
index 59d5f073ccc31c235f5c4f2c75b51ae64fd6a690..88753bf2fea2084e348c8d5fbad8ff22d9bd4f21 100644 (file)
@@ -21,6 +21,6 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-
 propagate_const<void (*)()> test1;
+
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 0 }
index a55999fd5780f448b9144e397ab665f0f340c040..84770257e7c0bfd03f69869097ecbd4df84363ad 100644 (file)
@@ -21,8 +21,8 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-// { dg-error "invalid type" "" { target *-*-* } 66 }
-// { dg-error "uninitialized reference member" "" { target *-*-* } 112 }
-
 propagate_const<int&> test1; // { dg-error "use of deleted function" }
+
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 0 }
+// { dg-prune-output "invalid type" }
+// { dg-prune-output "uninitialized reference member" }
index 60b33734e5757796b5e4b52a3c207c6e7c95b80e..85a7c7b531ce928dba148d8ad307025abbd70672 100644 (file)
@@ -21,6 +21,6 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-
 propagate_const<int[1]> test1;
+
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 0 }