libstdc++: Adjust doxygen markup for unique_ptr grouping
authorJonathan Wakely <jwakely@redhat.com>
Thu, 15 Jul 2021 20:14:40 +0000 (21:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 16 Jul 2021 07:40:44 +0000 (08:40 +0100)
This reorders the @{ and @relates tags, and moves the definition of the
__cpp_lib_make_unique macro out of the group, as it seems to confuse
doxygen.

libstdc++-v3/ChangeLog:

* include/bits/unique_ptr.h: Adjust doxygen markup.

libstdc++-v3/include/bits/unique_ptr.h

index d483f13..0a0667a 100644 (file)
@@ -724,7 +724,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       unique_ptr& operator=(const unique_ptr&) = delete;
     };
 
-  /// @relates unique_ptr @{
+  /// @{
+  /// @relates unique_ptr
 
   /// Swap overload for unique_ptr
   template<typename _Tp, typename _Dp>
@@ -936,7 +937,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     { };
 
 #if __cplusplus >= 201402L
-  /// @relates unique_ptr @{
 #define __cpp_lib_make_unique 201304
 
   /// @cond undocumented
@@ -955,6 +955,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   /// @endcond
 
+  /// @{
+  /// @relates unique_ptr
+
   /// std::make_unique for single objects
   template<typename _Tp, typename... _Args>
     inline typename _MakeUniq<_Tp>::__single_object