aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/doc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-10-10 21:22:12 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-10-10 21:22:12 +0100
commit2137aa92412da363d52ef699987441be28b239d0 (patch)
treea51c2d65dfeba5ee9c15b0dd3a5f3242a57b7493 /libstdc++-v3/doc
parent988f0466e80a6e4cc758f4df387b6c021b1cb078 (diff)
downloadgcc-2137aa92412da363d52ef699987441be28b239d0.zip
gcc-2137aa92412da363d52ef699987441be28b239d0.tar.gz
gcc-2137aa92412da363d52ef699987441be28b239d0.tar.bz2
libstdc++: Replace use of reserved name that clashes [PR 97362]
The name __deref is defined as a macro by Windows headers. This renames the __deref() helper function to __ref. It doesn't actually dereference an iterator. it just has the same type as the iterator's reference type. libstdc++-v3/ChangeLog: PR libstdc++/97362 * doc/html/manual/source_code_style.html: Regenerate. * doc/xml/manual/appendix_contributing.xml: Add __deref to BADNAMES. * include/debug/functions.h (_Irreflexive_checker::__deref): Rename to __ref. * testsuite/17_intro/badnames.cc: Check __deref.
Diffstat (limited to 'libstdc++-v3/doc')
-rw-r--r--libstdc++-v3/doc/html/manual/source_code_style.html1
-rw-r--r--libstdc++-v3/doc/xml/manual/appendix_contributing.xml6
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/doc/html/manual/source_code_style.html b/libstdc++-v3/doc/html/manual/source_code_style.html
index 680e9e7..669f16d 100644
--- a/libstdc++-v3/doc/html/manual/source_code_style.html
+++ b/libstdc++-v3/doc/html/manual/source_code_style.html
@@ -32,6 +32,7 @@
<br />
      MS adds:<br />
      _T<br />
+ __deref<br />
<br />
      BSD adds:<br />
      __used<br />
diff --git a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
index 0099112..4380cbb 100644
--- a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
+++ b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
@@ -412,8 +412,9 @@ indicate a place that may require attention for multi-thread safety.
<para>
</para>
- <section xml:id="coding_style.bad_identifiers"><info><title>Bad Identifiers</title></info>
-
+
+ <section xml:id="coding_style.bad_identifiers"><info><title>Bad Identifiers</title></info> <!-- BADNAMES -->
+
<para>
Identifiers that conflict and should be avoided.
</para>
@@ -445,6 +446,7 @@ indicate a place that may require attention for multi-thread safety.
MS adds:
_T
+ __deref
BSD adds:
__used