libstdc++: Clarify manual demangle doc

Message ID fbdce7ef-037a-e677-f309-5125cf16e503@jguk.org
State Accepted
Headers
Series libstdc++: Clarify manual demangle doc |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jonny Grant June 10, 2023, 10:03 p.m. UTC
  libstdc++-v3/ChangeLog:

	* doc/xml/manual/extensions.xml: Remove demangle exception description and include.

---
 libstdc++-v3/doc/xml/manual/extensions.xml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
  

Comments

Jonathan Wakely June 14, 2023, 2:03 p.m. UTC | #1
On Sat, 10 Jun 2023 at 23:04, Jonny Grant wrote:
>
> libstdc++-v3/ChangeLog:
>
>         * doc/xml/manual/extensions.xml: Remove demangle exception description and include.

Thanks, pushed to trunk.

>
> ---
>  libstdc++-v3/doc/xml/manual/extensions.xml | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/libstdc++-v3/doc/xml/manual/extensions.xml b/libstdc++-v3/doc/xml/manual/extensions.xml
> index daa98f5cba7..d4fe2f509d4 100644
> --- a/libstdc++-v3/doc/xml/manual/extensions.xml
> +++ b/libstdc++-v3/doc/xml/manual/extensions.xml
> @@ -514,12 +514,10 @@ get_temporary_buffer(5, (int*)0);
>      you won't notice.)
>    </para>
>    <para>
> -    Probably the only times you'll be interested in demangling at runtime
> -    are when you're seeing <code>typeid</code> strings in RTTI, or when
> -    you're handling the runtime-support exception classes.  For example:
> +    Probably the only time you'll be interested in demangling at runtime
> +    is when you're seeing <code>typeid</code> strings in RTTI.  For example:
>    </para>
>     <programlisting>
> -#include &lt;exception&gt;
>  #include &lt;iostream&gt;
>  #include &lt;cstdlib&gt;
>  #include &lt;cxxabi.h&gt;
> --
> 2.37.2
  

Patch

diff --git a/libstdc++-v3/doc/xml/manual/extensions.xml b/libstdc++-v3/doc/xml/manual/extensions.xml
index daa98f5cba7..d4fe2f509d4 100644
--- a/libstdc++-v3/doc/xml/manual/extensions.xml
+++ b/libstdc++-v3/doc/xml/manual/extensions.xml
@@ -514,12 +514,10 @@  get_temporary_buffer(5, (int*)0);
     you won't notice.)
   </para>
   <para>
-    Probably the only times you'll be interested in demangling at runtime
-    are when you're seeing <code>typeid</code> strings in RTTI, or when
-    you're handling the runtime-support exception classes.  For example:
+    Probably the only time you'll be interested in demangling at runtime
+    is when you're seeing <code>typeid</code> strings in RTTI.  For example:
   </para>
    <programlisting>
-#include &lt;exception&gt;
 #include &lt;iostream&gt;
 #include &lt;cstdlib&gt;
 #include &lt;cxxabi.h&gt;