aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/doc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2010-02-17 22:31:19 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2010-02-17 22:31:19 +0000
commitaf14c87be9d09cf9fc192f6db3edcbd441bae5ce (patch)
tree66c42a0872b302281e9ad4697a250cfb53316922 /libstdc++-v3/doc
parent2a5f4935e89990dc061a1a238e3acd8ca2e234db (diff)
downloadgcc-af14c87be9d09cf9fc192f6db3edcbd441bae5ce.zip
gcc-af14c87be9d09cf9fc192f6db3edcbd441bae5ce.tar.gz
gcc-af14c87be9d09cf9fc192f6db3edcbd441bae5ce.tar.bz2
appendix_contributing.xml: Update markup rules for quoting and functions.
2010-02-17 Benjamin Kosnik <bkoz@redhat.com> * doc/xml/manual/appendix_contributing.xml: Update markup rules for quoting and functions. From-SVN: r156838
Diffstat (limited to 'libstdc++-v3/doc')
-rw-r--r--libstdc++-v3/doc/xml/manual/appendix_contributing.xml109
1 files changed, 101 insertions, 8 deletions
diff --git a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
index d77f2a0..ea0c715 100644
--- a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
+++ b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml
@@ -1002,31 +1002,40 @@ indicate a place that may require attention for multi-thread safety.
</para>
<para>
- These points accompany the first list in section 3.1 of the
- Doxygen manual:
+ Some commentary to accompany
+ the first list in the <ulink url="http://www.stack.nl/~dimitri/doxygen/docblocks.html">Special
+ Documentation Blocks</ulink> section of
+ the Doxygen manual:
</para>
<orderedlist>
- <listitem><para>Use the Javadoc style...</para></listitem>
+ <listitem>
+ <para>For longer comments, use the Javadoc style...</para>
+ </listitem>
+
<listitem>
<para>
...not the Qt style. The intermediate *'s are preferred.
</para>
</listitem>
- <listitem>
+
+ <listitem>
<para>
Use the triple-slash style only for one-line comments (the
- <quote>brief</quote> mode). Very recent versions of Doxygen permit
- full-mode comments in triple-slash blocks, but the
- formatting still comes out wonky.
+ <quote>brief</quote> mode).
</para>
</listitem>
+
<listitem>
<para>
This is disgusting. Don't do this.
</para>
</listitem>
</orderedlist>
+
+ <para>
+ Some specific guidelines:
+ </para>
<para>
Use the @-style of commands, not the !-style. Please be
@@ -1051,6 +1060,89 @@ indicate a place that may require attention for multi-thread safety.
(Examples of all these abound in the present code.)
</para>
+ <para>
+ Complicated math functions should use the multi-line
+ format. An example from <filename>random.h</filename>:
+ </para>
+
+ <para>
+<literallayout>
+ /**
+ * @brief A model of a linear congruential random number generator.
+ *
+ * @f[
+ * x_{i+1}\leftarrow(ax_{i} + c) \bmod m
+ * @f]
+ */
+</literallayout>
+ </para>
+
+ <para>
+ Be careful about using certain, special characters when
+ writing Doxygen comments. Single and double quotes, and
+ separators in filenames are two common trouble spots. When in
+ doubt, consult the following table.
+ </para>
+
+<table frame='all'>
+<title>HTML to Doxygen markup comparison</title>
+<tgroup cols='2' align='left' colsep='1' rowsep='1'>
+<colspec colname='c1'></colspec>
+<colspec colname='c2'></colspec>
+
+ <thead>
+ <row>
+ <entry>HTML</entry>
+ <entry>Doxygen</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>\</entry>
+ <entry>\\</entry>
+ </row>
+
+ <row>
+ <entry>&quot;</entry>
+ <entry>\"</entry>
+ </row>
+
+ <row>
+ <entry>&apos;</entry>
+ <entry>\'</entry>
+ </row>
+
+ <row>
+ <entry>&lt;i&gt;</entry>
+ <entry>@a word</entry>
+ </row>
+
+ <row>
+ <entry>&lt;b&gt;</entry>
+ <entry>@b word</entry>
+ </row>
+
+ <row>
+ <entry>&lt;code&gt;</entry>
+ <entry>@c word</entry>
+ </row>
+
+ <row>
+ <entry>&lt;em&gt;</entry>
+ <entry>@a word</entry>
+ </row>
+
+ <row>
+ <entry>&lt;em&gt;</entry>
+ <entry>&lt;em&gt;two words or more&lt;/em&gt;</entry>
+ </row>
+ </tbody>
+
+</tgroup>
+</table>
+
+
</sect3>
</sect2>
@@ -1242,7 +1334,7 @@ table below.
<thead>
<row>
<entry>HTML</entry>
- <entry>XML</entry>
+ <entry>Docbook</entry>
</row>
</thead>
@@ -1374,6 +1466,7 @@ table below.
<entry>
<para>&lt;filename class="headerfile"&gt;ctype.h&lt;/filename&gt;</para>
<para>&lt;filename class="directory"&gt;/home/gcc/build&lt;/filename&gt;</para>
+ <para>&lt;filename class="libraryfile"&gt;libstdc++.so&lt;/filename&gt;</para>
</entry>
</row>
</tbody>