From 83b4f7ceffe1c203f8178d3bf71d538cc992f6f3 Mon Sep 17 00:00:00 2001 From: bkoz Date: Wed, 17 Feb 2010 22:31:19 +0000 Subject: [PATCH] 2010-02-17 Benjamin Kosnik * doc/xml/manual/appendix_contributing.xml: Update markup rules for quoting and functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156838 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 + .../doc/xml/manual/appendix_contributing.xml | 109 +++++++++++++++++++-- 2 files changed, 106 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7bed518..739660c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-02-17 Benjamin Kosnik + + * doc/xml/manual/appendix_contributing.xml: Update markup rules + for quoting and functions. + 2010-02-17 Chris Jefferson * include/bits/locale_facets.h (__convert_to_v): Add empty 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. - These points accompany the first list in section 3.1 of the - Doxygen manual: + Some commentary to accompany + the first list in the Special + Documentation Blocks section of + the Doxygen manual: - Use the Javadoc style... + + For longer comments, use the Javadoc style... + + ...not the Qt style. The intermediate *'s are preferred. - + + Use the triple-slash style only for one-line comments (the - brief mode). Very recent versions of Doxygen permit - full-mode comments in triple-slash blocks, but the - formatting still comes out wonky. + brief mode). + This is disgusting. Don't do this. + + + Some specific guidelines: + 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.) + + Complicated math functions should use the multi-line + format. An example from random.h: + + + + + /** + * @brief A model of a linear congruential random number generator. + * + * @f[ + * x_{i+1}\leftarrow(ax_{i} + c) \bmod m + * @f] + */ + + + + + 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. + + + +HTML to Doxygen markup comparison + + + + + + + HTML + Doxygen + + + + + + \ + \\ + + + + " + \" + + + + ' + \' + + + + <i> + @a word + + + + <b> + @b word + + + + <code> + @c word + + + + <em> + @a word + + + + <em> + <em>two words or more</em> + + + + +
+ + @@ -1242,7 +1334,7 @@ table below. HTML - XML + Docbook @@ -1374,6 +1466,7 @@ table below. <filename class="headerfile">ctype.h</filename> <filename class="directory">/home/gcc/build</filename> + <filename class="libraryfile">libstdc++.so</filename> -- 2.7.4