summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-11-18 21:50:39 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-11-18 21:50:39 (GMT)
commit0014470c309dccbc2ac72c527391039900b8cf3d (patch)
treea6d2454b4e6d53003fa829bb7134fe373461ed97
parent01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e (diff)
downloadDoxygen-0014470c309dccbc2ac72c527391039900b8cf3d.zip
Doxygen-0014470c309dccbc2ac72c527391039900b8cf3d.tar.gz
Doxygen-0014470c309dccbc2ac72c527391039900b8cf3d.tar.bz2
Release-1.7.2-20101118
-rw-r--r--INSTALL4
-rw-r--r--README4
-rwxr-xr-xconfigure2
-rw-r--r--doc/commands.doc1187
-rw-r--r--doc/config.doc24
-rw-r--r--doc/htmlcmds.doc6
-rw-r--r--doc/install.doc4
-rw-r--r--doc/language.doc2
-rw-r--r--doc/translator_report.txt2
-rw-r--r--src/classdef.cpp1
-rw-r--r--src/cmdmapper.cpp1
-rw-r--r--src/cmdmapper.h3
-rw-r--r--src/code.l10
-rw-r--r--src/commentcnv.l63
-rw-r--r--src/commentscan.l2
-rw-r--r--src/compound.xsd6
-rw-r--r--src/compound_xsd.h6
-rw-r--r--src/config.xml19
-rw-r--r--src/configoptions.cpp23
-rw-r--r--src/declinfo.l4
-rw-r--r--src/definition.cpp2
-rw-r--r--src/docparser.cpp17
-rw-r--r--src/docparser.h2
-rw-r--r--src/docsets.cpp12
-rw-r--r--src/doctokenizer.l4
-rw-r--r--src/dot.cpp4
-rw-r--r--src/doxygen.cpp37
-rw-r--r--src/filedef.cpp7
-rw-r--r--src/fortranscanner.l11
-rw-r--r--src/groupdef.cpp1
-rw-r--r--src/htmldocvisitor.cpp3
-rw-r--r--src/index.cpp111
-rw-r--r--src/latexdocvisitor.cpp1
-rw-r--r--src/mandocvisitor.cpp1
-rw-r--r--src/membergroup.cpp2
-rw-r--r--src/membergroup.h4
-rw-r--r--src/namespacedef.cpp1
-rw-r--r--src/perlmodgen.cpp1
-rw-r--r--src/pre.l7
-rw-r--r--src/rtfdocvisitor.cpp1
-rw-r--r--src/scanner.l16
-rw-r--r--src/textdocvisitor.cpp1
-rw-r--r--src/util.cpp101
-rw-r--r--src/util.h6
-rw-r--r--src/xmldocvisitor.cpp1
45 files changed, 1037 insertions, 690 deletions
diff --git a/INSTALL b/INSTALL
index edb9b04..7adabd1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,7 +1,7 @@
-DOXYGEN Version 1.7.2-20101106
+DOXYGEN Version 1.7.2-20101118
Please read the installation section of the manual
(http://www.doxygen.org/install.html) for instructions.
--------
-Dimitri van Heesch (06 November 2010)
+Dimitri van Heesch (18 November 2010)
diff --git a/README b/README
index 0eeba24..79dbd9c 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-DOXYGEN Version 1.7.2_20101106
+DOXYGEN Version 1.7.2_20101118
Please read INSTALL for compilation instructions.
@@ -26,4 +26,4 @@ forum.
Enjoy,
-Dimitri van Heesch (dimitri@stack.nl) (06 November 2010)
+Dimitri van Heesch (dimitri@stack.nl) (18 November 2010)
diff --git a/configure b/configure
index 5ae4fa6..f2e9d00 100755
--- a/configure
+++ b/configure
@@ -20,7 +20,7 @@ doxygen_version_minor=7
doxygen_version_revision=2
#NOTE: Setting version_mmn to "NO" will omit mmn info from the package.
-doxygen_version_mmn=20101106
+doxygen_version_mmn=20101118
bin_dirs=`echo $PATH | sed -e "s/:/ /g"`
diff --git a/doc/commands.doc b/doc/commands.doc
index 42e76e0..a954d1a 100644
--- a/doc/commands.doc
+++ b/doc/commands.doc
@@ -1,12 +1,12 @@
/******************************************************************************
*
- *
+ *
*
* Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -19,10 +19,10 @@
\section cmd_intro Introduction
All commands in the documentation start with a backslash (<b>\\</b>) or an
-at-sign (<b>\@</b>). If you prefer you can replace all commands starting with a
+at-sign (<b>\@</b>). If you prefer you can replace all commands starting with a
backslash below by their counterparts that start with an at-sign.
-Some commands have one or more arguments.
+Some commands have one or more arguments.
Each argument has a certain range:
<ul>
<li>If \<sharp\> braces are used the argument is a single word.
@@ -31,9 +31,9 @@ Each argument has a certain range:
<li>If {curly} braces are used the argument extends until the next paragraph.
Paragraphs are delimited by a blank line or by a section indicator.
</ul>
-If [square] brackets are used the argument is optional.
+If in addition to the aboveargument specifiers [square] brackets are used the argument is optional.
-Here is an alphabetically sorted list of all commands with references to their
+Here is an alphabetically sorted list of all commands with references to their
documentation:
\secreflist
\refitem cmda \\a
@@ -66,7 +66,6 @@ documentation:
\refitem cmddontinclude \\dontinclude
\refitem cmddot \\dot
\refitem cmddotfile \\dotfile
-\refitem cmdmscfile \\mscfile
\refitem cmde \\e
\refitem cmdelse \\else
\refitem cmdelseif \\elseif
@@ -117,6 +116,7 @@ documentation:
\refitem cmdmanonly \\manonly
\refitem cmdmemberof \\memberof
\refitem cmdmsc \\msc
+\refitem cmdmscfile \\mscfile
\refitem cmdn \\n
\refitem cmdname \\name
\refitem cmdnamespace \\namespace
@@ -146,6 +146,7 @@ documentation:
\refitem cmdrelatesalso \\relatesalso
\refitem cmdremark \\remark
\refitem cmdremarks \\remarks
+\refitem cmdresult \\result
\refitem cmdreturn \\return
\refitem cmdreturns \\returns
\refitem cmdretval \\retval
@@ -194,11 +195,11 @@ The following subsections provide a list of all commands that are recognized by
doxygen. Unrecognized commands are treated as normal text.
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Structural indicators
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center> \endhtmlonly
@@ -209,7 +210,7 @@ Structural indicators
but rather one group with a merged documentation and the first title found in
any of the commands.
- The title is optional, so this command can also be used to add a number of
+ The title is optional, so this command can also be used to add a number of
entities to an existing group using \@{ and \@} like this:
\verbatim
@@ -219,7 +220,7 @@ Structural indicators
*/
/*!
- * A function
+ * A function
*/
void func1()
{
@@ -233,39 +234,43 @@ Structural indicators
/*! @} */
\endverbatim
- \sa page \ref grouping "Grouping", sections \ref cmddefgroup "\\defgroup", \ref cmdingroup "\\ingroup" and
+ \sa page \ref grouping "Grouping", sections \ref cmddefgroup "\\defgroup", \ref cmdingroup "\\ingroup", and
\ref cmdweakgroup "\\weakgroup".
<hr>
-\section cmdcallgraph \\callgraph
+\section cmdcallgraph \\callgraph
\addindex \\callgraph
When this command is put in a comment block of a function or method
- and \ref cfg_have_dot "HAVE_DOT" is set to YES, then doxygen will
+ and \ref cfg_have_dot "HAVE_DOT" is set to YES, then doxygen will
generate a call graph for that function (provided the implementation of the
- function or method calls other documented functions). The call graph will
+ function or method calls other documented functions). The call graph will be
generated regardless of the value of \ref cfg_call_graph "CALL_GRAPH".
- \note The completeness (and correctness) of the call graph depends on the
+ \note The completeness (and correctness) of the call graph depends on the
doxygen code parser which is not perfect.
+ \sa section \ref cmdcallergraph "\\callergraph".
+
<hr>
-\section cmdcallergraph \\callergraph
+\section cmdcallergraph \\callergraph
\addindex \\callergraph
When this command is put in a comment block of a function or method
- and \ref cfg_have_dot "HAVE_DOT" is set to YES, then doxygen will
+ and \ref cfg_have_dot "HAVE_DOT" is set to YES, then doxygen will
generate a caller graph for that function (provided the implementation of the
- function or method calls other documented functions). The caller graph will
+ function or method calls other documented functions). The caller graph will be
generated regardless of the value of \ref cfg_caller_graph "CALLER_GRAPH".
- \note The completeness (and correctness) of the caller graph depends on the
+ \note The completeness (and correctness) of the caller graph depends on the
doxygen code parser which is not perfect.
+ \sa section \ref cmdcallgraph "\\callgraph".
+
<hr>
\section cmdcategory \\category <name> [<header-file>] [<header-name>]
\addindex \\category
- For Objective-C only: Indicates that a comment block contains documentation
- for a class category with name \<name\>. The arguments are
+ For Objective-C only: Indicates that a comment block contains documentation
+ for a class category with name \<name\>. The arguments are
equal to the \\class command.
\sa section \ref cmdclass "\\class".
@@ -275,23 +280,23 @@ Structural indicators
\addindex \\class
Indicates that a comment block contains documentation for a
- class with name \<name\>. Optionally a header file and a header name
- can be specified. If the header-file is specified, a link to a verbatim copy
- of the header will be included in the HTML documentation.
- The \<header-name\> argument can be used to overwrite the
- name of the link that is used in the class documentation to something other
- than \<header-file\>. This can be useful if the include name is not located
+ class with name \<name\>. Optionally a header file and a header name
+ can be specified. If the header-file is specified, a link to a verbatim copy
+ of the header will be included in the HTML documentation.
+ The \<header-name\> argument can be used to overwrite the
+ name of the link that is used in the class documentation to something other
+ than \<header-file\>. This can be useful if the include name is not located
on the default include path (like \<X11/X.h\>). With the \<header-name\>
- argument you can also specify how the include statement should look like,
- by adding either quotes or sharp brackets around the name.
- Sharp brackets are used if just the name is given. Note that the
- last two arguments can also specified using
+ argument you can also specify how the include statement should look like,
+ by adding either quotes or sharp brackets around the name.
+ Sharp brackets are used if just the name is given. Note that the
+ last two arguments can also be specified using
the \ref cmdheaderfile "\\headerfile" command.
-
- \par Example:
- \verbinclude class.h
+
+ \par Example:
+ \verbinclude class.h
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/class/html/index.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/class/html/index.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -299,13 +304,13 @@ Structural indicators
\section cmddef \\def <name>
\addindex \\def
- Indicates that a comment block contains documentation for a
- \c \#define macro.
+ Indicates that a comment block contains documentation for a
+ \c \#define macro.
\par Example:
- \verbinclude define.h
+ \verbinclude define.h
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/define/html/define_8h.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/define/html/define_8h.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -320,28 +325,28 @@ Structural indicators
thus building a hierarchy of groups.
The \<name\> argument should be a single-word identifier.
-
- \sa page \ref grouping "Grouping", sections \ref cmdingroup "\\ingroup", \ref cmdaddtogroup "\\addtogroup",
+
+ \sa page \ref grouping "Grouping", sections \ref cmdingroup "\\ingroup", \ref cmdaddtogroup "\\addtogroup", and
\ref cmdweakgroup "\\weakgroup".
<hr>
\section cmddir \\dir [<path fragment>]
-
+
\addindex \\dir
Indicates that a comment block contains documentation for a directory.
- The "path fragment" argument should include the directory name and
- enough of the path to be unique with respect to the other directories
+ The "path fragment" argument should include the directory name and
+ enough of the path to be unique with respect to the other directories
in the project.
- The \ref cfg_show_dirs "SHOW_DIRECTORIES" option determines whether
+ The \ref cfg_show_dirs "SHOW_DIRECTORIES" option determines whether
or not the directory information is shown and the
- \ref cfg_strip_from_path "STRIP_FROM_PATH" option determines what is
+ \ref cfg_strip_from_path "STRIP_FROM_PATH" option determines what is
stripped from the full path before it appears in the output.
<hr>
\section cmdenum \\enum <name>
\addindex \\enum
- Indicates that a comment block contains documentation for an
+ Indicates that a comment block contains documentation for an
enumeration, with name \<name\>. If the enum is a member of a class and
the documentation block is located outside the class definition,
the scope of the class should be specified as well.
@@ -349,32 +354,32 @@ Structural indicators
the \\enum comment may be omitted.
\par Note:
- The type of an anonymous enum cannot be documented, but the values
+ The type of an anonymous enum cannot be documented, but the values
of an anonymous enum can.
-
+
\par Example:
- \verbinclude enum.h
+ \verbinclude enum.h
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/enum/html/class_test.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/enum/html/class_test.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
<hr>
\section cmdexample \\example <file-name>
-
+
\addindex \\example
- Indicates that a comment block contains documentation for a source code
+ Indicates that a comment block contains documentation for a source code
example. The name of the source file is \<file-name\>. The text of
- this file will be included in the documentation, just after the
+ this file will be included in the documentation, just after the
documentation contained in the comment block. All examples are placed
in a list. The source code is scanned for documented members and classes.
- If any are found, the names are cross-referenced with the documentation.
- Source files or directories can be specified using the
- \ref cfg_example_path "EXAMPLE_PATH"
+ If any are found, the names are cross-referenced with the documentation.
+ Source files or directories can be specified using the
+ \ref cfg_example_path "EXAMPLE_PATH"
tag of doxygen's configuration file.
If \<file-name\> itself is not unique for the set of example files specified
- by the
+ by the
\ref cfg_example_path "EXAMPLE_PATH" tag, you can include part of the absolute path
to disambiguate it.
@@ -386,7 +391,7 @@ Structural indicators
Where the example file \c example_test.cpp looks as follows:
\verbinclude example_test.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/example/html/examples.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/example/html/examples.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -397,8 +402,8 @@ Structural indicators
\addindex \\endinternal
This command ends a documentation fragment that was started with a
- \ref cmdinternal "\\internal" command. The text between \c \\internal and
- \c \\endinternal will only be visible
+ \ref cmdinternal "\\internal" command. The text between \c \\internal and
+ \c \\endinternal will only be visible
if \ref cfg_internal_docs "INTERNAL_DOCS" is set to YES.
<hr>
@@ -408,11 +413,11 @@ Structural indicators
This command can be used to manually indicate an inheritance relation,
when the programming language does not support this concept natively
(e.g. C).
-
+
The file \c manual.c in the example directory shows how to use this command.
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -421,22 +426,22 @@ Structural indicators
<hr>
\section cmdfile \\file [<name>]
-
+
\addindex \\file
- Indicates that a comment block contains documentation for a source or
+ Indicates that a comment block contains documentation for a source or
header file with name \<name\>. The file name may include (part of) the
path if the file-name alone is not unique. If the file name is omitted
- (i.e. the line after \\file is left blank) then the documentation block that
+ (i.e. the line after \\file is left blank) then the documentation block that
contains the \\file command will belong to the file it is located in.
\par Important:
- The documentation of global functions, variables, typedefs, and enums will
+ The documentation of global functions, variables, typedefs, and enums will
only be included in the output if the file they are in is documented as well.
\par Example:
- \verbinclude file.h
+ \verbinclude file.h
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/file/html/file_8h.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/file/html/file_8h.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -445,34 +450,37 @@ Structural indicators
<hr>
\section cmdfn \\fn (function declaration)
-
+
\addindex \\fn
Indicates that a comment block contains documentation for a function
- (either global or as a member of a class). This command is \em only
- needed if a comment block is \e not placed in front (or behind)
- the function declaration or definition.
-
- If your comment block \e is in front of the function
+ (either global or as a member of a class). This command is \em only
+ needed if a comment block is \e not placed in front (or behind)
+ the function declaration or definition.
+
+ If your comment block \e is in front of the function
declaration or definition this command can (and to avoid redundancy
- should) be omitted.
+ should) be omitted.
A full function declaration including arguments should be specified after the
- \\fn command on a \e single line, since the argument ends at the end
+ \\fn command on a \e single line, since the argument ends at the end
of the line!
+ This command is equivalent to \\var, \\typedef, and \\property.
+
\warning Do not use this command
- if it is not absolutely needed, since it will lead to duplication of
+ if it is not absolutely needed, since it will lead to duplication of
information and thus to errors.
\par Example:
- \verbinclude func.h
+ \verbinclude func.h
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/func/html/class_test.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/func/html/class_test.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
- \sa section \ref cmdvar "\\var" and \ref cmdtypedef "\\typedef".
+ \sa sections \ref cmdvar "\\var", \ref cmdproperty "\\property", and
+ \ref cmdtypedef "\\typedef".
<hr>
\section cmdheaderfile \\headerfile <header-file> [<header-name>]
@@ -480,22 +488,22 @@ Structural indicators
\addindex \\headerfile
Intended to be used for class, struct, or union documentation, where
the documentation is in front of the definition. The arguments of
- this command are the same as the second and third argument of
- \ref cmdclass "\\cmdclass".
- The header-file name refers to the file that should by included by the
+ this command are the same as the second and third argument of
+ \ref cmdclass "\\class".
+ The \<header-file\> name refers to the file that should by included by the
application to obtain the definition of the class, struct, or union.
- The \<header-name\> argument can be used to overwrite the
- name of the link that is used in the class documentation to something other
- than \<header-file\>. This can be useful if the include name is not located
- on the default include path (like \<X11/X.h\>).
+ The \<header-name\> argument can be used to overwrite the
+ name of the link that is used in the class documentation to something other
+ than \<header-file\>. This can be useful if the include name is not located
+ on the default include path (like \<X11/X.h\>).
With the \<header-name\>
- argument you can also specify how the include statement should look like,
- by adding either double quotes or sharp brackets around the name.
- By default sharp brackets are used if just the name is given.
+ argument you can also specify how the include statement should look like,
+ by adding either double quotes or sharp brackets around the name.
+ By default sharp brackets are used if just the name is given.
- If a pair of double quotes is given for either the header-file or
- header-name argument, the current file (in which the command was found)
+ If a pair of double quotes is given for either the \<header-file\> or
+ \<header-name\> argument, the current file (in which the command was found)
will be used but with quotes. So for a comment block with a \\headerfile
command inside a file test.h, the following three commands are equivalent:
\verbatim
@@ -509,7 +517,7 @@ Structural indicators
\headerfile test.h <>
\headerfile <> \endverbatim
- To globally reverse the default include representation to
+ To globally reverse the default include representation to
local includes you can set
\ref cfg_force_local_includes "FORCE_LOCAL_INCLUDES" to \c YES.
@@ -522,8 +530,11 @@ Structural indicators
\addindex \\hideinitializer
By default the value of a define and the initializer of a variable
are displayed unless they are longer than 30 lines. By putting
- this command in a comment block of a define or variable, the
- initializer is always hidden.
+ this command in a comment block of a define or variable, the
+ initializer is always hidden. The maximum number of initalization linens
+ can be changed by means of the configuration parameter
+ \ref cfg_max_initializer_lines "MAX_INITIALIZER_LINES", the default value is
+ 30.
\sa section \ref cmdshowinitializer "\\showinitializer".
@@ -534,11 +545,11 @@ Structural indicators
This command can be used to manually indicate an inheritance relation,
when the programming language does not support this concept natively
(e.g. C).
-
+
The file \c manual.c in the example directory shows how to use this command.
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -554,43 +565,45 @@ Structural indicators
groups identified by \<groupname\>.
\sa page \ref grouping "Grouping", sections \ref cmddefgroup "\\defgroup",
- \ref cmdaddtogroup "\\addtogroup" and \ref cmdweakgroup "\\weakgroup"
+ \ref cmdaddtogroup "\\addtogroup", and \ref cmdweakgroup "\\weakgroup"
<hr>
\section cmdinterface \\interface <name> [<header-file>] [<header-name>]
\addindex \\interface
Indicates that a comment block contains documentation for an
- interface with name \<name\>. The arguments are equal to the \\class
+ interface with name \<name\>. The arguments are equal to the arguments of the \\class
command.
\sa section \ref cmdclass "\\class".
<hr>
\section cmdinternal \\internal
-
+
\addindex \\internal
This command starts a documentation fragment that is meant for internal
- use only. The fragment naturally ends at the end of the comment block.
- You can also force the internal section to end earlier using the
+ use only. The fragment naturally ends at the end of the comment block.
+ You can also force the internal section to end earlier by using the
\ref cmdendinternal "\\endinternal" command.
- If the \\internal command is put inside a section
- (see for example \ref cmdsection "\\section") all subsections after the
- command are considered to be internal as well. Only a new section at the
+ If the \\internal command is put inside a section
+ (see for example \ref cmdsection "\\section") all subsections after the
+ command are considered to be internal as well. Only a new section at the
same level will end the fragment that is considered internal.
You can use \ref cfg_internal_docs "INTERNAL_DOCS" in the config file
to show (\c YES) or hide (\c NO) the internal documentation.
+ \sa section \ref cmdendinternal "\\endinternal".
+
<hr>
\section cmdmainpage \\mainpage [(title)]
\addindex \\mainpage
- If the \\mainpage command is placed in a comment block the
+ If the \\mainpage command is placed in a comment block the
block is used to customize the index page (in HTML) or
- the first chapter (in \f$\mbox{\LaTeX}\f$).
+ the first chapter (in \f$\mbox{\LaTeX}\f$).
The title argument is optional and replaces the default title that
doxygen normally generates. If you do not want any title you can
@@ -607,7 +620,7 @@ Structural indicators
* \section install_sec Installation
*
* \subsection step1 Step 1: Opening the box
- *
+ *
* etc...
*/
\endverbatim
@@ -615,28 +628,28 @@ Structural indicators
You can refer to the main page using \\ref index (if the treeview
is disabled, otherwise you should use \\ref main).
- \sa section \ref cmdsection "\\section",
- section \ref cmdsubsection "\\subsection" and
+ \sa section \ref cmdsection "\\section",
+ section \ref cmdsubsection "\\subsection", and
section \ref cmdpage "\\page".
<hr>
\section cmdmemberof \\memberof <name>
\addindex \\memberof
- This command make a function a member of a class in a similar way
+ This command makes a function a member of a class in a similar way
as \ref cmdrelates "\\relates" does, only with this command the function
is represented as a real member of the class.
- This can be useful when the programming language does not support
+ This can be useful when the programming language does not support
the concept of member functions natively (e.g. C).
It is also possible to use this command together with
\ref cmdpublic "\\public", \ref cmdprotected "\\protected" or
\ref cmdprivate "\\private".
-
+
The file \c manual.c in the example directory shows how to use this command.
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/manual/html/index.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -645,25 +658,25 @@ Structural indicators
\ref cmdprivate "\\private".
<hr>
-\section cmdname \\name [(header)]
+\section cmdname \\name [(header)]
\addindex \\name
This command turns a comment block into a header
definition of a member group. The
- comment block should be followed by a
+ comment block should be followed by a
<code>//\@{ ... //\@}</code> block containing the
members of the group.
See section \ref memgroup for an example.
<hr>
-\section cmdnamespace \\namespace <name>
+\section cmdnamespace \\namespace <name>
\addindex \\namespace
Indicates that a comment block contains documentation for a
- namespace with name \<name\>.
-
+ namespace with name \<name\>.
+
<hr>
\section cmdnosubgrouping \\nosubgrouping
@@ -673,20 +686,23 @@ Structural indicators
to avoid that doxygen puts a member group as a subgroup of a
Public/Protected/Private/... section.
+ \sa sections \ref cmdpublicsection "\\publicsection",
+ \ref cmdprotectedsection "\\protectedsection" and
+ \ref cmdprivatesection "\\privatesection".
<hr>
\section cmdoverload \\overload [(function declaration)]
\addindex \\overload
- This command can be used to generate the following
+ This command can be used to generate the following
standard text for an overloaded member function:
- `This is an overloaded member function, provided for convenience.
+ `This is an overloaded member function, provided for convenience.
It differs from the above function only in what argument(s) it accepts.'
If the documentation for the overloaded member function is not located
- in front of the function declaration or definition, the optional
+ in front of the function declaration or definition, the optional
argument should be used to specify the correct function.
-
+
Any other documentation that is inside the documentation block will
by appended after the generated message.
@@ -700,52 +716,51 @@ Structural indicators
\par Example:
\verbinclude examples/overload.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/overload/html/class_test.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/overload/html/class_test.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
<hr>
\section cmdpackage \\package <name>
-
+
\addindex \\package
Indicates that a comment block contains documentation for a
- Java package with name \<name\>.
+ Java package with name \<name\>.
<hr>
\section cmdpage \\page <name> (title)
\addindex \\page
Indicates that a comment block contains a piece of documentation that is
- not directly related to one specific class, file or member.
+ not directly related to one specific class, file or member.
The HTML generator creates a page containing the documentation. The
- \f$\mbox{\LaTeX}\f$ generator
+ \f$\mbox{\LaTeX}\f$ generator
starts a new section in the chapter `Page documentation'.
-
+
\par Example:
- \verbinclude page.doc
+ \verbinclude page.doc
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/page/html/pages.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/page/html/pages.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
- \par Note:
+ \par Note:
The \<name\> argument consists of a combination of letters and number
- digits. If you wish to use upper case letters (e.g. \c MYPAGE1), or
- mixed case letters (e.g. \c MyPage1) in the \<name\> argument, you
- should set \c CASE_SENSE_NAMES to \c YES. However, this is advisable
- only if your file system is case sensitive. Otherwise (and for better
- portability) you should use all lower case letters (e.g. \c mypage1)
+ digits. If you wish to use upper case letters (e.g. \c MYPAGE1), or
+ mixed case letters (e.g. \c MyPage1) in the \<name\> argument, you
+ should set \c CASE_SENSE_NAMES to \c YES. However, this is advisable
+ only if your file system is case sensitive. Otherwise (and for better
+ portability) you should use all lower case letters (e.g. \c mypage1)
for \<name\> in all references to the page.
-
- \sa section \ref cmdsection "\\section", section
- \ref cmdsubsection "\\subsection", and section
+
+ \sa section \ref cmdsection "\\section", section
+ \ref cmdsubsection "\\subsection", and section
\ref cmdref "\\ref".
<hr>
\section cmdprivate \\private
\addindex \\private
- \addindex \\privatesection
Indicates that the member documented in the comment block is private,
i.e., should only be accessed by other members in the same class.
@@ -758,23 +773,35 @@ Structural indicators
"private:" class marker in C++, use \\privatesection.
\sa sections \ref cmdmemberof "\\memberof", \ref cmdpublic "\\public",
- and \ref cmdprotected "\\protected".
+ \ref cmdprotected "\\protected" and \ref cmdprivatesection "\\privatesection".
+
+<hr>
+\section cmdprivatesection \\privatesection
+
+ \addindex \\privatesection
+ Starting a section of private members, in a way similar to the
+ "private:" class marker in C++.
+ Indicates that the member documented in the comment block is private,
+ i.e., should only be accessed by other members in the same class.
+
+ \sa sections \ref cmdmemberof "\\memberof", \ref cmdpublic "\\public",
+ \ref cmdprotected "\\protected" and \ref cmdprivate "\\private".
<hr>
\section cmdproperty \\property (qualified property name)
\addindex \\property
Indicates that a comment block contains documentation for a
- property (either global or as a member of a class).
- This command is equivalent to \\var and \\fn.
+ property (either global or as a member of a class).
+ This command is equivalent to \\var, \\typedef, and \\fn.
- \sa section \ref cmdfn "\\fn" and \ref cmdvar "\\var".
+ \sa sections \ref cmdfn "\\fn", \ref cmdtypedef "\\typedef", and
+ \ref cmdvar "\\var".
<hr>
\section cmdprotected \\protected
\addindex \\protected
- \addindex \\protectedsection
Indicates that the member documented in the comment block is protected,
i.e., should only be accessed by other members in the same or derived
classes.
@@ -788,14 +815,27 @@ Structural indicators
"protected:" class marker in C++, use \\protectedsection.
\sa sections \ref cmdmemberof "\\memberof", \ref cmdpublic "\\public",
- and \ref cmdprivate "\\private".
+ \ref cmdprivate "\\private" and \ref cmdprotectedsection "\\protectedsection".
+
+<hr>
+\section cmdprotectedsection \\protectedsection
+
+ \addindex \\protectedsection
+ Starting a section of protected members, in a way similar to the
+ "protected:" class marker in C++.
+ Indicates that the member documented in the comment block is protected,
+ i.e., should only be accessed by other members in the same or derived
+ classes.
+
+ \sa sections \ref cmdmemberof "\\memberof", \ref cmdpublic "\\public",
+ \ref cmdprivate "\\private" and \ref cmdprotected "\\protected".
<hr>
\section cmdprotocol \\protocol <name> [<header-file>] [<header-name>]
\addindex \\protocol
Indicates that a comment block contains documentation for a
- protocol in Objective-C with name \<name\>. The arguments are equal
+ protocol in Objective-C with name \<name\>. The arguments are equal
to the \\class command.
\sa section \ref cmdclass "\\class".
@@ -804,7 +844,6 @@ Structural indicators
\section cmdpublic \\public
\addindex \\public
- \addindex \\publicsection
Indicates that the member documented in the comment block is public,
i.e., can be accessed by any other class or function.
@@ -816,24 +855,36 @@ Structural indicators
For starting a section of public members, in a way similar to the
"public:" class marker in C++, use \\publicsection.
- \sa sections \ref cmdmemberof "\\memberof", \ref cmdprotected "\\protected"
- and \ref cmdprivate "\\private".
+ \sa sections \ref cmdmemberof "\\memberof", \ref cmdprotected "\\protected",
+ \ref cmdprivate "\\private" and \ref cmdpublicsection "\\publicsection".
+
+<hr>
+\section cmdpublicsection \\publicsection
+
+ \addindex \\publicsection
+ Starting a section of public members, in a way similar to the
+ "public:" class marker in C++.
+ Indicates that the member documented in the comment block is public,
+ i.e., can be accessed by any other class or function.
+
+ \sa sections \ref cmdmemberof "\\memberof", \ref cmdprotected "\\protected",
+ \ref cmdprivate "\\private" and \ref cmdpublic "\\public".
<hr>
\section cmdrelates \\relates <name>
\addindex \\relates
This command can be used in the documentation of a non-member function
- \<name\>. It puts the function inside the `related function' section
- of the class documentation. This command is useful for documenting
+ \<name\>. It puts the function inside the `related function' section
+ of the class documentation. This command is useful for documenting
non-friend functions that are nevertheless strongly coupled to a certain
class. It prevents the need of having to document a file, but
- only works for functions.
+ only works for functions.
\par Example:
- \verbinclude relates.cpp
+ \verbinclude relates.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/relates/html/class_string.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/relates/html/class_string.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
@@ -848,11 +899,11 @@ Structural indicators
\addindex \\relatesalso
This command can be used in the documentation of a non-member function
- \<name\>. It puts the function both inside the `related function' section
- of the class documentation as well as leaving its normal file documentation
- location. This command is useful for documenting
+ \<name\>. It puts the function both inside the `related function' section
+ of the class documentation as well as leaving it at its normal file documentation
+ location. This command is useful for documenting
non-friend functions that are nevertheless strongly coupled to a certain
- class. It only works for functions.
+ class. It only works for functions.
<hr>
\section cmdrelatedalso \\relatedalso <name>
@@ -866,8 +917,12 @@ Structural indicators
\addindex \\showinitializer
By default the value of a define and the initializer of a variable
are only displayed if they are less than 30 lines long. By putting
- this command in a comment block of a define or variable, the
+ this command in a comment block of a define or variable, the
initializer is shown unconditionally.
+ The maximum number of initalization linens
+ can be changed by means of the configuration parameter
+ \ref cfg_max_initializer_lines "MAX_INITIALIZER_LINES", the default value is
+ 30.
\sa section \ref cmdhideinitializer "\\hideinitializer".
@@ -876,7 +931,7 @@ Structural indicators
\addindex \\struct
Indicates that a comment block contains documentation for a
- struct with name \<name\>. The arguments are equal to the \\class
+ struct with name \<name\>. The arguments are equal to the arguments of the \\class
command.
\sa section \ref cmdclass "\\class".
@@ -886,17 +941,18 @@ Structural indicators
\addindex \\typedef
Indicates that a comment block contains documentation for a
- typedef (either global or as a member of a class).
- This command is equivalent to \\var and \\fn.
+ typedef (either global or as a member of a class).
+ This command is equivalent to \\var, \\propery, and \\fn.
- \sa section \ref cmdfn "\\fn" and \ref cmdvar "\\var".
+ \sa section \ref cmdfn "\\fn", \ref cmdproperty "\\property", and
+ \ref cmdvar "\\var".
<hr>
\section cmdunion \\union <name> [<header-file>] [<header-name>]
\addindex \\union
Indicates that a comment block contains documentation for a
- union with name \<name\>. The arguments are equal to the \\class
+ union with name \<name\>. The arguments are equal to the arguments of the \\class
command.
\sa section \ref cmdclass "\\class".
@@ -906,10 +962,10 @@ Structural indicators
\addindex \\var
Indicates that a comment block contains documentation for a variable or
- enum value (either global or as a member of a class).
- This command is equivalent to \\typedef and \\fn.
+ enum value (either global or as a member of a class).
+ This command is equivalent to \\typedef, \\propery, and \\fn.
- \sa section \ref cmdfn "\\fn" and \ref cmdtypedef "\\typedef".
+ \sa section \ref cmdfn "\\fn", \ref cmdproperty "\\property", and \ref cmdtypedef "\\typedef".
<hr>
\section cmdweakgroup \\weakgroup <name> [(title)]
@@ -918,15 +974,15 @@ Structural indicators
a lower priority when it comes to resolving conflicting grouping
definitions.
- \sa page \ref grouping "Grouping" and \ref cmdaddtogroup "\\addtogroup".
+ \sa page \ref grouping "Grouping" and section \ref cmdaddtogroup "\\addtogroup".
<hr>
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Section indicators
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center>\endhtmlonly
@@ -934,31 +990,31 @@ Section indicators
\section cmdattention \\attention { attention text }
\addindex \\attention
- Starts a paragraph where a message that needs attention may be entered.
- The paragraph will be indented.
+ Starts a paragraph where a message that needs attention may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\attention commands will be joined into a single paragraph.
- The \\attention command ends when a blank line or some other
- sectioning command is encountered.
+ The \\attention command ends when a blank line or some other
+ sectioning command is encountered.
<hr>
\section cmdauthor \\author { list of authors }
\addindex \\author
- Starts a paragraph where one or more author names may be entered.
- The paragraph will be indented.
+ Starts a paragraph where one or more author names may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\author commands will be joined into a single paragraph.
- Each author description will start a new line. Alternatively, one \\author command
- may mention several authors. The \\author command ends when a blank line or some other
+ Each author description will start a new line. Alternatively, one \\author command
+ may mention several authors. The \\author command ends when a blank line or some other
sectioning command is encountered.
\par Example:
- \verbinclude author.cpp
+ \verbinclude author.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/author/html/class_windows_n_t.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/author/html/class_windows_n_t.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
<hr>
@@ -968,7 +1024,7 @@ Section indicators
Equivalent to \ref cmdauthor "\\author".
<hr>
-\section cmdbrief \\brief {brief description}
+\section cmdbrief \\brief { brief description }
\addindex \\brief
Starts a paragraph that serves as a brief description. For classes and files
@@ -976,10 +1032,10 @@ Section indicators
documentation page. For class and file members, the brief description
will be placed at the declaration of the member and prepended to the
detailed description. A brief description may span several lines (although
- it is advised to keep it brief!). A brief description ends when a
+ it is advised to keep it brief!). A brief description ends when a
blank line or another sectioning command is encountered. If multiple
- \\brief commands are present they will be joined. See section
- \ref cmdauthor "\\author" for an example.
+ \\brief commands are present they will be joined. See section
+ \ref cmdauthor "\\author" for an example.
Synonymous to \\short.
@@ -987,14 +1043,14 @@ Section indicators
\section cmdbug \\bug { bug description }
\addindex \\bug
- Starts a paragraph where one or more bugs may be reported.
- The paragraph will be indented.
+ Starts a paragraph where one or more bugs may be reported.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\bug commands will be joined into a single paragraph.
Each bug description will start on a new line.
- Alternatively, one \\bug command may mention
- several bugs. The \\bug command ends when a blank line or some other
+ Alternatively, one \\bug command may mention
+ several bugs. The \\bug command ends when a blank line or some other
sectioning command is encountered. See section \ref cmdauthor "\\author"
for an example.
@@ -1002,18 +1058,18 @@ Section indicators
\section cmdcond \\cond [<section-label>]
\addindex \\cond
- Starts a conditional section that ends with a corresponding
- \ref cmdendcond "\\endcond" command, which is typically found in
+ Starts a conditional section that ends with a corresponding
+ \ref cmdendcond "\\endcond" command, which is typically found in
another comment block. The main purpose of this pair of
commands is to (conditionally) exclude part of a file from processing
- (in older version of doxygen this could only be achieved using C preprocessor commands).
+ (in older version of doxygen this could only be achieved using C preprocessor commands).
The section between \\cond and \\endcond commands can be included by
adding its section label to the \ref cfg_enabled_sections "ENABLED_SECTIONS"
configuration option. If the section label is omitted, the section will
be excluded from processing unconditionally.
- For conditional sections within a comment block one should
+ For conditional sections within a comment block one should
use a \ref cmdif "\\if" ... \ref cmdendif "\\endif" block.
Conditional sections can be nested. In this case a nested section will only
@@ -1039,7 +1095,7 @@ class Intf
/// @cond DEV
/*
- * The implementation of the interface
+ * The implementation of the interface
*/
class Implementation : public Intf
{
@@ -1058,25 +1114,27 @@ class Implementation : public Intf
/// @endcond
};
-/// @endcond
+/// @endcond
\endverbatim
The output will be different depending on whether or not \c ENABLED_SECTIONS
contains \c TEST, or \c DEV
+ \sa section \ref cmdendcond "\\endcond".
+
<hr>
\section cmddate \\date { date description }
\addindex \\date
- Starts a paragraph where one or more dates may be entered.
- The paragraph will be indented.
+ Starts a paragraph where one or more dates may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\date commands will be joined into a single paragraph.
Each date description will start on a new line.
- Alternatively, one \\date command may mention
- several dates. The \\date command ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdauthor "\\author"
+ Alternatively, one \\date command may mention
+ several dates. The \\date command ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdauthor "\\author"
for an example.
<hr>
@@ -1084,11 +1142,11 @@ contains \c TEST, or \c DEV
\addindex \\deprecated
Starts a paragraph indicating that this documentation block belongs to
- a deprecated entity. Can be used to describe alternatives,
+ a deprecated entity. Can be used to describe alternatives,
expected life span, etc.
<hr>
-\section cmddetails \\details {detailed decription}
+\section cmddetails \\details { detailed decription }
\addindex \\details
Just like \ref cmdbrief "\\brief" starts a brief description, \\details
@@ -1096,11 +1154,11 @@ contains \c TEST, or \c DEV
then the \\details command is not needed.
<hr>
-\section cmdelse \\else
+\section cmdelse \\else
\addindex \\else
- Starts a conditional section if the previous conditional section
- was not enabled. The previous section should have been started with
+ Starts a conditional section if the previous conditional section
+ was not enabled. The previous section should have been started with
a \c \\if, \c \\ifnot, or \c \\elseif command.
\sa \ref cmdif "\\if", \ref cmdifnot "\\ifnot", \ref cmdelseif "\\elseif",
@@ -1110,15 +1168,15 @@ contains \c TEST, or \c DEV
\section cmdelseif \\elseif <section-label>
\addindex \\elseif
- Starts a conditional documentation section if the previous section
+ Starts a conditional documentation section if the previous section
was not enabled. A conditional section is
disabled by default. To enable it you must put the
- section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
+ section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
tag in the configuration
file. Conditional blocks can be nested. A nested section is
only enabled if all enclosing sections are enabled as well.
- \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",
+ \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",
\ref cmdelse "\\else", and \ref cmdelseif "\\elseif".
<hr>
@@ -1127,43 +1185,40 @@ contains \c TEST, or \c DEV
\addindex \\endcond
Ends a conditional section that was started by \ref cmdcond "\\cond".
- \sa \ref cmdcond "\\cond".
+ \sa section \ref cmdcond "\\cond".
<hr>
-\section cmdendif \\endif
+\section cmdendif \\endif
\addindex \\endif
Ends a conditional section that was started by \c \\if or \c \\ifnot
For each \c \\if or \c \\ifnot one and only one matching \c \\endif must follow.
- \sa \ref cmdif "\\if", and \ref cmdifnot "\\ifnot".
+ \sa sections \ref cmdif "\\if" and \ref cmdifnot "\\ifnot".
<hr>
\section cmdexception \\exception <exception-object> { exception description }
\addindex \\exception
- Starts an exception description for an exception object with name
- \<exception-object\>. Followed by a description of the exception.
+ Starts an exception description for an exception object with name
+ \<exception-object\>. Followed by a description of the exception.
The existence of the exception object is not checked.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\exception commands will be joined into a single paragraph.
- Each parameter description will start on a new line.
- The \\exception description ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdfn "\\fn" for an
+ Each exception description will start on a new line.
+ The \\exception description ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdfn "\\fn" for an
example.
- \par Note:
- the tag \\exceptions is a synonym for this tag.
-
<hr>
\section cmdif \\if <section-label>
\addindex \\if
- Starts a conditional documentation section. The section ends
+ Starts a conditional documentation section. The section ends
with a matching \c \\endif command. A conditional section is
disabled by default. To enable it you must put the
- section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
+ section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
tag in the configuration
file. Conditional blocks can be nested. A nested section is
only enabled if all enclosing sections are enabled as well.
@@ -1183,9 +1238,9 @@ contains \c TEST, or \c DEV
* \endif
* Unconditional text.
*/
-\endverbatim
+\endverbatim
- You can also use conditional commands inside aliases. To
+ You can also use conditional commands inside aliases. To
document a class in two languages you could for instance use:
\par Example 2:
@@ -1213,21 +1268,21 @@ ALIASES = "english=\if english" \
and \c ENABLED_SECTIONS can be used to enable either \c english or \c dutch.
- \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",
+ \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",
\ref cmdelse "\\else", and \ref cmdelseif "\\elseif".
<hr>
\section cmdifnot \\ifnot <section-label>
\addindex \\ifnot
- Starts a conditional documentation section. The section ends
+ Starts a conditional documentation section. The section ends
with a matching \c \\endif command. This conditional section is
enabled by default. To disable it you must put the
- section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
+ section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"
tag in the configuration
- file.
+ file.
- \sa sections \ref cmdendif "\\endif", \ref cmdif "\\if",
+ \sa sections \ref cmdendif "\\endif", \ref cmdif "\\if",
\ref cmdelse "\\else", and \ref cmdelseif "\\elseif".
<hr>
@@ -1235,66 +1290,68 @@ ALIASES = "english=\if english" \
\addindex \\invariant
Starts a paragraph where the invariant of an entity can be described.
- The paragraph will be indented.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\invariant commands will be joined into a single paragraph.
Each invariant description will start on a new line.
- Alternatively, one \\invariant command may mention
- several invariants. The \\invariant command ends when a blank line or some other
+ Alternatively, one \\invariant command may mention
+ several invariants. The \\invariant command ends when a blank line or some other
sectioning command is encountered.
<hr>
\section cmdnote \\note { text }
\addindex \\note
- Starts a paragraph where a note can be entered. The paragraph will be
- indented. The text of the paragraph has no special internal structure.
+ Starts a paragraph where a note can be entered. The paragraph will be
+ indented. The text of the paragraph has no special internal structure.
All visual enhancement commands may be used inside the paragraph.
Multiple adjacent \\note commands will be joined into a single paragraph.
Each note description will start on a new line.
- Alternatively, one \\note command may mention
- several notes. The \\note command ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdpar "\\par"
+ Alternatively, one \\note command may mention
+ several notes. The \\note command ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdpar "\\par"
for an example.
<hr>
\section cmdpar \\par [(paragraph title)] { paragraph }
\addindex \\par
- If a paragraph title is given this command starts a paragraph with a
+ If a paragraph title is given this command starts a paragraph with a
user defined heading. The heading extends until the end of the
line. The paragraph following the command will be indented.
If no paragraph title is given this command will start a new paragraph.
- This will also work inside other paragraph commands
- (like \\param or \\warning) without ending the that command.
-
+ This will also work inside other paragraph commands
+ (like \\param or \\warning) without ending that command.
+
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
- The \\par command ends when a blank line or some other
- sectioning command is encountered.
+ The \\par command ends when a blank line or some other
+ sectioning command is encountered.
\par Example:
- \verbinclude par.cpp
+ \verbinclude par.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/par/html/class_test.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/par/html/class_test.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
<hr>
-\section cmdparam \\param <parameter-name> { parameter description }
+\section cmdparam \\param [(dir)] <parameter-name> { parameter description }
\addindex \\param
- Starts a parameter description for a function parameter with name
- \<parameter-name\>, followed by a description of the parameter.
+ Starts a parameter description for a function parameter with name
+ \<parameter-name\>, followed by a description of the parameter.
The existence of the parameter is checked and a warning is given if
the documentation of this (or any other) parameter is missing or not
present in the function declaration or definition.
- The \\param command has an optional attribute specifying the direction
- of the attribute. Possible values are "in" and "out". Here is an example
- for the function memcpy:
+ The \\param command has an optional attribute, (dir), specifying the direction
+ of the parameter. Possible values are "[in]", "[in,out]", and "[out]",
+ note the [square] brackets in this description.
+ When a parameter is both input and output, [in,out] is used as attribute.
+ Here is an example for the function memcpy:
\code
/*!
* Copies bytes from a source memory area to a destination memory area,
@@ -1305,19 +1362,18 @@ ALIASES = "english=\if english" \
*/
void memcpy(void *dest, const void *src, size_t n);
\endcode
- If a parameter is both input and output, use [in,out] as an attribute.
- The parameter description is a paragraph with no special internal structure.
+ The parameter description is a paragraph with no special internal structure.
All visual enhancement commands may be used inside the paragraph.
Multiple adjacent \\param commands will be joined into a single paragraph.
Each parameter description will start on a new line.
- The \\param description ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdfn "\\fn" for an
+ The \\param description ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdfn "\\fn" for an
example.
Note that for PHP one can also specify the type (or types if you
- separate them with a pipe symbol) which are allowed for a parameter
+ separate them with a pipe symbol) which are allowed for a parameter
(as this is not part of the definition).
The syntax is the same as for phpDocumentor, i.e.
\verbatim
@@ -1328,24 +1384,24 @@ void memcpy(void *dest, const void *src, size_t n);
\section cmdtparam \\tparam <template-parameter-name> { description }
\addindex \\tparam
- Starts a template parameters for a class or function template parameter
+ Starts a template parameter for a class or function template parameter
with name \<template-parameter-name\>, followed by a description of the
template parameter.
- Otherwise similar to \ref cmdparam "\\cmdparam".
+ Otherwise similar to \ref cmdparam "\\param".
<hr>
\section cmdpost \\post { description of the postcondition }
\addindex \\post
Starts a paragraph where the postcondition of an entity can be described.
- The paragraph will be indented.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\post commands will be joined into a single paragraph.
Each postcondition will start on a new line.
- Alternatively, one \\post command may mention
- several postconditions. The \\post command ends when a blank line or some other
+ Alternatively, one \\post command may mention
+ several postconditions. The \\post command ends when a blank line or some other
sectioning command is encountered.
<hr>
@@ -1353,28 +1409,28 @@ void memcpy(void *dest, const void *src, size_t n);
\addindex \\pre
Starts a paragraph where the precondition of an entity can be described.
- The paragraph will be indented.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\pre commands will be joined into a single paragraph.
Each precondition will start on a new line.
- Alternatively, one \\pre command may mention
- several preconditions. The \\pre command ends when a blank line or some other
+ Alternatively, one \\pre command may mention
+ several preconditions. The \\pre command ends when a blank line or some other
sectioning command is encountered.
-
+
<hr>
\section cmdremark \\remark { remark text }
\addindex \\remark
- Starts a paragraph where one or more remarks may be entered.
- The paragraph will be indented.
+ Starts a paragraph where one or more remarks may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\remark commands will be joined into a single paragraph.
Each remark will start on a new line.
- Alternatively, one \\remark command may mention
- several remarks. The \\remark command ends when a blank line or some other
- sectioning command is encountered.
+ Alternatively, one \\remark command may mention
+ several remarks. The \\remark command ends when a blank line or some other
+ sectioning command is encountered.
<hr>
\section cmdremarks \\remarks { remark text }
@@ -1383,15 +1439,21 @@ void memcpy(void *dest, const void *src, size_t n);
Equivalent to \ref cmdremark "\\remark".
<hr>
+\section cmdresult \\result { description of the result value }
+
+ \addindex \\result
+ Equivalent to \ref cmdreturn "\\return".
+
+<hr>
\section cmdreturn \\return { description of the return value }
\addindex \\return
- Starts a return value description for a function.
+ Starts a return value description for a function.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\return commands will be joined into a single paragraph.
- The \\return description ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdfn "\\fn" for an
+ The \\return description ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdfn "\\fn" for an
example.
<hr>
@@ -1399,36 +1461,36 @@ void memcpy(void *dest, const void *src, size_t n);
\addindex \\returns
Equivalent to \ref cmdreturn "\\return".
-
+
<hr>
\section cmdretval \\retval <return value> { description }
\addindex \\retval
- Starts a description for a function's return value with name
- \<return value\>. Followed by a description of the return value.
+ Starts a description for a function's return value with name
+ \<return value\>, followed by a description of the return value.
The text of the paragraph that forms the description has no special
- internal structure. All visual enhancement commands may be used inside the
+ internal structure. All visual enhancement commands may be used inside the
paragraph.
Multiple adjacent \\retval commands will be joined into a single paragraph.
Each return value description will start on a new line.
- The \\retval description ends when a blank line or some other
- sectioning command is encountered.
+ The \\retval description ends when a blank line or some other
+ sectioning command is encountered.
<hr>
\section cmdsa \\sa { references }
\addindex \\sa
- Starts a paragraph where one or more cross-references to classes,
+ Starts a paragraph where one or more cross-references to classes,
functions, methods, variables, files or URL may be specified.
- Two names joined by either <code>::</code> or <code>\#</code>
- are understood as referring to a class and one of its members.
- One of several overloaded methods or constructors
- may be selected by including a parenthesized list of argument types after
- the method name.
+ Two names joined by either <code>::</code> or <code>\#</code>
+ are understood as referring to a class and one of its members.
+ One of several overloaded methods or constructors
+ may be selected by including a parenthesized list of argument types after
+ the method name.
Synonymous to \\see.
- \sa section \ref autolink "autolink" for information on how to create links
+ \sa section \ref autolink "autolink" for information on how to create links
to objects.
<hr>
@@ -1438,27 +1500,27 @@ void memcpy(void *dest, const void *src, size_t n);
Equivalent to \ref cmdsa "\\sa". Introduced for compatibility with Javadoc.
<hr>
-\section cmdshort \\short {short description}
+\section cmdshort \\short { short description }
\addindex \\short
- Equivalent to \\ref cmdbrief "\\brief".
-
+ Equivalent to \ref cmdbrief "\\brief".
+
<hr>
\section cmdsince \\since { text }
\addindex \\since
This tag can be used to specify since when (version or time) an
entity is available. The paragraph that follows \\since does not have any
- special internal structure. All visual enhancement commands may be
- used inside the paragraph. The \\since description ends when a blank
- line or some other sectioning command is encountered.
+ special internal structure. All visual enhancement commands may be
+ used inside the paragraph. The \\since description ends when a blank
+ line or some other sectioning command is encountered.
<hr>
\section cmdtest \\test { paragraph describing a test case }
\addindex \\test
- Starts a paragraph where a test case can be described.
- The description will also add the test case to a separate test list.
+ Starts a paragraph where a test case can be described.
+ The description will also add the test case to a separate test list.
The two instances of the description will be cross-referenced.
Each test case in the test list will be preceded by a header that
indicates the origin of the test case.
@@ -1469,21 +1531,23 @@ void memcpy(void *dest, const void *src, size_t n);
\addindex \\throw
Synonymous to \\exception (see section \ref cmdexception "\\exception").
- \par Note:
+ \par Note:
the tag \\throws is a synonym for this tag.
+ \sa section \ref cmdexception "\\exception"
+
<hr>
\section cmdthrows \\throws <exception-object> { exception description }
\addindex \\throws
- Equivalent to \ref cmdthrows "\\throws".
+ Equivalent to \ref cmdthrow "\\throw".
<hr>
\section cmdtodo \\todo { paragraph describing what is to be done }
\addindex \\todo
- Starts a paragraph where a TODO item is described.
- The description will also add an item to a separate TODO list.
+ Starts a paragraph where a TODO item is described.
+ The description will also add an item to a separate TODO list.
The two instances of the description will be cross-referenced.
Each item in the TODO list will be preceded by a header that
indicates the origin of the item.
@@ -1492,59 +1556,59 @@ void memcpy(void *dest, const void *src, size_t n);
\section cmdversion \\version { version number }
\addindex \\version
- Starts a paragraph where one or more version strings may be entered.
- The paragraph will be indented.
+ Starts a paragraph where one or more version strings may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\version commands will be joined into a single paragraph.
Each version description will start on a new line.
- Alternatively, one \\version command may mention
- several version strings.
- The \\version command ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdauthor "\\author"
+ Alternatively, one \\version command may mention
+ several version strings.
+ The \\version command ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdauthor "\\author"
for an example.
-
+
<hr>
\section cmdwarning \\warning { warning message }
\addindex \\warning
- Starts a paragraph where one or more warning messages may be entered.
- The paragraph will be indented.
+ Starts a paragraph where one or more warning messages may be entered.
+ The paragraph will be indented.
The text of the paragraph has no special internal structure. All visual
enhancement commands may be used inside the paragraph.
Multiple adjacent \\warning commands will be joined into a single paragraph.
Each warning description will start on a new line.
- Alternatively, one \\warning command may mention
- several warnings. The \\warning command ends when a blank line or some other
- sectioning command is encountered. See section \ref cmdauthor "\\author"
+ Alternatively, one \\warning command may mention
+ several warnings. The \\warning command ends when a blank line or some other
+ sectioning command is encountered. See section \ref cmdauthor "\\author"
for an example.
<hr>
-\section cmdxrefitem \\xrefitem <key> "(heading)" "(list title)" {text}
+\section cmdxrefitem \\xrefitem <key> "(heading)" "(list title)" { text }
\addindex \\xrefitem
- This command is a generalization of commands such as \ref cmdtodo "\\todo"
+ This command is a generalization of commands such as \ref cmdtodo "\\todo"
and \ref cmdbug "\\bug".
- It can be used to create user-defined text sections which are automatically
- cross-referenced between the place of occurrence and a related page,
- which will be generated. On the related page all sections of
- the same type will be collected.
-
- The first argument \<key\> is a
- identifier uniquely representing the type of the section. The second argument
- is a quoted string representing the heading of the section under which
- text passed as the forth argument is put. The third argument (list title)
- is used as the title for the related page containing all items with the
- same key. The keys "todo", "test", "bug", and "deprecated" are predefined.
-
- To get an idea on how to use the \\xrefitem command and what its effect
- is, consider the todo list, which (for English output) can be seen an
+ It can be used to create user-defined text sections which are automatically
+ cross-referenced between the place of occurrence and a related page,
+ which will be generated. On the related page all sections of
+ the same type will be collected.
+
+ The first argument \<key\> is an
+ identifier uniquely representing the type of the section. The second argument
+ is a quoted string representing the heading of the section under which
+ text passed as the fourth argument is put. The third argument (list title)
+ is used as the title for the related page containing all items with the
+ same key. The keys "todo", "test", "bug" and "deprecated" are predefined.
+
+ To get an idea on how to use the \\xrefitem command and what its effect
+ is, consider the todo list, which (for English output) can be seen an
alias for the command
\verbatim \xrefitem todo "Todo" "Todo List" \endverbatim
- Since it is very tedious and error-prone to repeat the first three
- parameters of the command for each section, the command is meant to
- be used in combination with the \ref cfg_aliases "ALIASES" option in the
+ Since it is very tedious and error-prone to repeat the first three
+ parameters of the command for each section, the command is meant to
+ be used in combination with the \ref cfg_aliases "ALIASES" option in the
configuration file.
To define a new command \\reminder, for instance, one should add the following
line to the configuration file:
@@ -1554,11 +1618,11 @@ void memcpy(void *dest, const void *src, size_t n);
<hr>
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Commands to create links
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center>\endhtmlonly
@@ -1573,36 +1637,36 @@ Commands to create links
\addindex \\anchor
This command places an invisible, named anchor into the documentation
- to which you can refer with the \\ref command.
+ to which you can refer with the \\ref command.
\note Anchors can currently only be put into a comment block
that is marked as a page (using \ref cmdpage "\\page") or mainpage
- (\ref cmdmainpage "\\mainpage").
+ (\ref cmdmainpage "\\mainpage").
\sa section \ref cmdref "\\ref".
<hr>
\section cmdendlink \\endlink
- \addindex \\endlink
+ \addindex \\endlink
This command ends a link that is started with the \\link command.
-
+
\sa section \ref cmdlink "\\link".
<hr>
-\section cmdlink \\link <link-object>
+\section cmdlink \\link <link-object>
\addindex \\link
The links that are automatically generated by doxygen always have the
- name of the object they point to as link-text.
+ name of the object they point to as link-text.
- The \\link command can be used to create a link to an object (a file,
- class, or member) with a user specified link-text.
+ The \\link command can be used to create a link to an object (a file,
+ class, or member) with a user specified link-text.
The link command should end with an \\endlink command. All text between
- the \\link and \\endlink commands serves as text for a link to
+ the \\link and \\endlink commands serves as text for a link to
the \<link-object\> specified as the first argument of \\link.
-
- See section \ref autolink "autolink" for more information on automatically
+
+ See section \ref autolink "autolink" for more information on automatically
generated links and valid link-objects.
<hr>
@@ -1610,12 +1674,12 @@ Commands to create links
\addindex \\ref
Creates a reference to a named section, subsection, page or anchor.
- For HTML documentation the reference command will generate a link to
- the section. For a sections or subsections the title of the section will be
- used as the text of the link. For anchor the optional text between quotes
+ For HTML documentation the reference command will generate a link to
+ the section. For a section or subsection the title of the section will be
+ used as the text of the link. For an anchor the optional text between quotes
will be used or \<name\> if no text is specified.
- For \f$\mbox{\LaTeX}\f$ documentation the reference command will
- generate a section number for sections or the text followed by a
+ For \f$\mbox{\LaTeX}\f$ documentation the reference command will
+ generate a section number for sections or the text followed by a
page number if \<name\> refers to an anchor.
\sa
@@ -1628,33 +1692,33 @@ Commands to create links
This command can be used to create a hierarchy of pages. The
same structure can be made using the \ref cmddefgroup "\\defgroup" and
\ref cmdingroup "\\ingroup" commands, but for pages the \\subpage command
- is often more convenient. The main page (see \ref cmdmainpage "\\mainpage")
- is typically the root of hierarchy.
+ is often more convenient. The main page (see \ref cmdmainpage "\\mainpage")
+ is typically the root of hierarchy.
This command behaves similar as \ref cmdref "\\ref" in the sense that
it creates a reference to a page labeled \<name\> with the optional
- link text as specified in the second argument.
+ link text as specified in the second argument.
It differs from the \\ref command in that it only works for pages,
and creates a parent-child relation between pages, where the
- child page (or sub page) is identified by label \<name\>.
-
+ child page (or sub page) is identified by label \<name\>.
+
See the \ref cmdsection "\\section"
and \ref cmdsubsection "\\subsection" commands if you want to add structure
without creating multiple pages.
\note Each page can be the sub page of only one other page and
- no cyclic relations are allowed, i.e. the page hierarchy must have a tree
+ no cyclic relations are allowed, i.e. the page hierarchy must have a tree
structure.
-
+
Here is an example:
\verbatim
/*! \mainpage A simple manual
Some general info.
-
+
This manual is divided in the following sections:
-- \subpage intro
+- \subpage intro
- \subpage advanced "Advanced usage"
*/
@@ -1662,7 +1726,7 @@ This manual is divided in the following sections:
/*! \page intro Introduction
This page introduces the user to the topic.
-Now you can proceed to the \ref advanced "advanced section".
+Now you can proceed to the \ref advanced "advanced section".
*/
//-----------------------------------------------------------
@@ -1675,15 +1739,19 @@ Make sure you have first read \ref intro "the introduction".
<hr>
\section cmdsection \\section <section-name> (section title)
-
+
\addindex \\section
Creates a section with name \<section-name\>. The title of the
- section should be specified as the second argument of the \\section
+ section should be specified as the second argument of the \\section
command.
\warning This command only works inside related page documentation and
\e not in other documentation blocks!
+ \sa
+ Section \ref cmdpage "\\page" for an example of the
+ \ref cmdsection "\\section" command.
+
<hr>
\section cmdsubsection \\subsection <subsection-name> (subsection title)
@@ -1692,12 +1760,12 @@ Make sure you have first read \ref intro "the introduction".
subsection should be specified as the second argument of the \\subsection
command.
- \warning This command only works inside a section of a related page
+ \warning This command only works inside a section of a related page
documentation block and
\e not in other documentation blocks!
\sa
- Section \ref cmdpage "\\page" for an example of the
+ Section \ref cmdpage "\\page" for an example of the
\ref cmdsubsection "\\subsection" command.
<hr>
@@ -1705,40 +1773,37 @@ Make sure you have first read \ref intro "the introduction".
\addindex \\subsubsection
Creates a subsubsection with name \<subsubsection-name\>. The title of the
- subsubsection should be specified as the second argument of the
+ subsubsection should be specified as the second argument of the
\\subsubsection command.
- \warning This command only works inside a subsection of a
+ \warning This command only works inside a subsection of a
related page documentation block and
\e not in other documentation blocks!
\sa
- Section \ref cmdpage "\\page" for an example of the
- \ref cmdsubsubsection "\\subsubsection" command.
+ Section \ref cmdpage "\\page" for an example of the
+ \ref cmdsection "\\section" command and
+ \ref cmdsubsection "\\subsection" command.
<hr>
\section cmdparagraph \\paragraph <paragraph-name> (paragraph title)
\addindex \\paragraph
Creates a named paragraph with name \<paragraph-name\>. The title of the
- paragraph should be specified as the second argument of the
+ paragraph should be specified as the second argument of the
\\paragraph command.
- \warning This command only works inside a subsubsection of a
+ \warning This command only works inside a subsubsection of a
related page documentation block and
\e not in other documentation blocks!
- \sa
- Section \ref cmdpage "\\page" for an example of the
- \ref cmdparagraph "\\paragraph" command.
-
<hr>
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Commands for displaying examples
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center>\endhtmlonly
@@ -1746,20 +1811,20 @@ Commands for displaying examples
\section cmddontinclude \\dontinclude <file-name>
\addindex \\dontinclude
- This command can be used to parse a source file without actually
- verbatim including it in the documentation (as the \\include command does).
+ This command can be used to parse a source file without actually
+ verbatim including it in the documentation (as the \\include command does).
This is useful if you want to divide the source file into smaller pieces and
add documentation between the pieces.
- Source files or directories can be specified using the
- \ref cfg_example_path "EXAMPLE_PATH"
+ Source files or directories can be specified using the
+ \ref cfg_example_path "EXAMPLE_PATH"
tag of doxygen's configuration file.
The class and member declarations and definitions inside the code fragment
- are `remembered' during the parsing of the comment block that contained
- the \\dontinclude command.
+ are `remembered' during the parsing of the comment block that contained
+ the \\dontinclude command.
- For line by line descriptions of source files, one or more lines
- of the example can be displayed using the \\line, \\skip, \\skipline, and
+ For line by line descriptions of source files, one or more lines
+ of the example can be displayed using the \\line, \\skip, \\skipline, and
\\until commands. An internal pointer is used for these commands. The
\\dontinclude command sets the pointer to the first line of the example.
@@ -1768,52 +1833,53 @@ Commands for displaying examples
Where the example file \c example_test.cpp looks as follows:
\verbinclude example_test.cpp
\htmlonly
- Click <a href="$(DOXYGEN_DOCDIR)/examples/include/html/example.html">here</a>
+ Click <a href="$(DOXYGEN_DOCDIR)/examples/include/html/example.html">here</a>
for the corresponding HTML documentation that is generated by doxygen.
\endhtmlonly
- \sa sections \ref cmdline "\\line", \ref cmdskip "\\skip",
- \ref cmdskipline "\\skipline", and \ref cmduntil "\\until".
+ \sa sections \ref cmdline "\\line", \ref cmdskip "\\skip",
+ \ref cmdskipline "\\skipline", \ref cmduntil "\\until", and
+ \ref cmdinclude "\\include".
<hr>
\section cmdinclude \\include <file-name>
\addindex \\include
This command can be used to include a source file as a block of code.
- The command takes the name of an include file as an argument.
- Source files or directories can be specified using the
- \ref cfg_example_path "EXAMPLE_PATH"
+ The command takes the name of an include file as an argument.
+ Source files or directories can be specified using the
+ \ref cfg_example_path "EXAMPLE_PATH"
tag of doxygen's configuration file.
If \<file-name\> itself is not unique for the set of example files specified
- by the \ref cfg_example_path "EXAMPLE_PATH" tag, you can include part
+ by the \ref cfg_example_path "EXAMPLE_PATH" tag, you can include part
of the absolute path to disambiguate it.
- Using the \\include command is equivalent to inserting the file into
- the documentation block and surrounding it
+ Using the \\include command is equivalent to inserting the file into
+ the documentation block and surrounding it
with \ref cmdcode "\\code" and \ref cmdendcode "\\endcode" commands.
- The main purpose of the \\include command is to avoid code
+ The main purpose of the \\include command is to avoid code
duplication in case of example blocks that consist of multiple
source and header files.
- For a line by line description of a source files use the
- \ref cmddontinclude "\\dontinclude" command in combination with
- the \ref cmdline "\\line", \ref cmdskip "\\skip",
- \ref cmdskipline "\\skipline",
- and \\until commands.
+ For a line by line description of a source files use the
+ \ref cmddontinclude "\\dontinclude" command in combination with
+ the \ref cmdline "\\line", \ref cmdskip "\\skip",
+ \ref cmdskipline "\\skipline",
+ and \\until commands.
- \note Doxygen's special commands do not work inside blocks of code.
+ \note Doxygen's special commands do not work inside blocks of code.
It is allowed to nest C-style comments inside a code block though.
- \sa section \ref cmdexample "\\example", \ref cmddontinclude "\\dontinclude", and
- section \ref cmdverbatim "\\verbatim".
+ \sa sections \ref cmdexample "\\example", \ref cmddontinclude "\\dontinclude", and
+ \ref cmdverbatim "\\verbatim".
<hr>
\section cmdincludelineno \\includelineno <file-name>
\addindex \\includelineno
- This command works the same way as \\include, but will add line
+ This command works the same way as \\include, but will add line
numbers to the included file.
\sa section \ref cmdinclude "\\include".
@@ -1824,9 +1890,9 @@ Commands for displaying examples
\addindex \\line
This command searches line by line through the example that was last
included using \\include or \\dontinclude until it finds a non-blank
- line. If that line contains the specified pattern, it is written
+ line. If that line contains the specified pattern, it is written
to the output.
-
+
The internal pointer that is used to keep track of the current line in
the example, is set to the start of the line following the non-blank
line that was found (or to the end of the example if no such line could
@@ -1840,29 +1906,29 @@ Commands for displaying examples
\addindex \\skip
This command searches line by line through the example that was last
included using \\include or \\dontinclude until it finds a line that contains
- the specified pattern.
-
+ the specified pattern.
+
The internal pointer that is used to keep track of the current line in
the example, is set to the start of the line that contains the specified
- pattern (or to the end of the example if the pattern could not be found).
+ pattern (or to the end of the example if the pattern could not be found).
See section \ref cmddontinclude "\\dontinclude" for an example.
<hr>
-\section cmdskipline \\skipline ( pattern )
+\section cmdskipline \\skipline ( pattern )
\addindex \\skipline
This command searches line by line through the example that was last
included using \\include or \\dontinclude until it finds a line that contains
the specified pattern. It then writes the line to the output.
-
+
The internal pointer that is used to keep track of the current line in
the example, is set to the start of the line following the line that is
- written (or to the end of the example if the pattern could not be found).
+ written (or to the end of the example if the pattern could not be found).
\par Note:
The command:
- \verbatim\skipline pattern\endverbatim
+ \verbatim\skipline pattern\endverbatim
is equivalent to:
\verbatim
\skip pattern
@@ -1875,10 +1941,10 @@ Commands for displaying examples
\addindex \\until
This command writes all lines of the example that was last
- included using \\include or \\dontinclude to the output, until it finds
+ included using \\include or \\dontinclude to the output, until it finds
a line containing the specified pattern. The line containing the pattern
will be written as well.
-
+
The internal pointer that is used to keep track of the current line in
the example, is set to the start of the line following last written
line (or to the end of the example if the pattern could not be found).
@@ -1891,9 +1957,9 @@ Commands for displaying examples
\addindex \\verbinclude
This command includes the file \<file-name\> verbatim in the documentation.
The command is equivalent to pasting the file in the documentation and
- placing \\verbatim and \\endverbatim commands around it.
+ placing \\verbatim and \\endverbatim commands around it.
- Files or directories that doxygen should look for can be specified using the
+ Files or directories that doxygen should look for can be specified using the
\ref cfg_example_path "EXAMPLE_PATH" tag of doxygen's configuration file.
<hr>
@@ -1904,49 +1970,53 @@ Commands for displaying examples
The command is equivalent to pasting the file in the documentation and
placing \\htmlonly and \\endhtmlonly commands around it.
- Files or directories that doxygen should look for can be specified using the
+ Files or directories that doxygen should look for can be specified using the
\ref cfg_example_path "EXAMPLE_PATH" tag of doxygen's configuration file.
<hr>
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Commands for visual enhancements
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center>\endhtmlonly
\section cmda \\a <word>
-
+
\addindex \\a
- Displays the argument \<word\> using a special font.
+ Displays the argument \<word\> in italics.
+ Use this command to emphasize words.
Use this command to refer to member arguments in the running text.
\par Example:
\verbatim
... the \a x and \a y coordinates are used to ...
- \endverbatim
+ \endverbatim
This will result in the following text:<br><br>
... the \a x and \a y coordinates are used to ...
+ Equivalent to \ref cmda "\\e" and \ref cmdem "\\em".
+ To emphasize multiple words use \<em\>multiple words\</em\>.
+
<hr>
\section cmdarg \\arg { item-description }
-
+
\addindex \\arg
This command has one argument that continues until the first
blank line or until another \\arg is encountered.
The command can be used to generate a simple, not nested list of
- arguments.
+ arguments.
Each argument should start with a \\arg command.
-
+
\par Example:
Typing:
\verbatim
\arg \c AlignLeft left alignment.
\arg \c AlignCenter center alignment.
\arg \c AlignRight right alignment
-
+
No other types of alignment are supported.
\endverbatim
will result in the following text:<br><br>
@@ -1970,7 +2040,7 @@ Commands for visual enhancements
Displays the argument \<word\> using a bold font.
Equivalent to \<b\>word\</b\>.
To put multiple words in bold use \<b\>multiple words\</b\>.
-
+
<hr>
\section cmdc \\c <word>
@@ -1996,37 +2066,37 @@ Commands for visual enhancements
\addindex \\code
Starts a block of code. A code block is treated differently
from ordinary text. It is interpreted as C/C++ code. The names of the
- classes and members that are documented are automatically replaced by
- links to the documentation.
+ classes and members that are documented are automatically replaced by
+ links to the documentation.
- \sa section \ref cmdendcode "\\endcode", section \ref cmdverbatim "\\verbatim".
+ \sa section \ref cmdendcode "\\endcode" and section \ref cmdverbatim "\\verbatim".
<hr>
\section cmdcopydoc \\copydoc <link-object>
\addindex \\copydoc
Copies a documentation block from the object specified by \<link-object\>
- and pastes it at the location of the command. This command can be useful
- to avoid cases where a documentation block would otherwise have to be
- duplicated or it can be used to extend the documentation of an inherited
+ and pastes it at the location of the command. This command can be useful
+ to avoid cases where a documentation block would otherwise have to be
+ duplicated or it can be used to extend the documentation of an inherited
member.
-
- The link object can point to a member (of a class, file or group),
- a class, a namespace, a group, a page, or a file (checked in that order).
- Note that if the object pointed to is a member (function, variable,
- typedef, etc), the compound (class, file, or group) containing it
- should also be documented for the copying to work.
-
- To copy the documentation for a member of a
+
+ The link object can point to a member (of a class, file or group),
+ a class, a namespace, a group, a page, or a file (checked in that order).
+ Note that if the object pointed to is a member (function, variable,
+ typedef, etc), the compound (class, file, or group) containing it
+ should also be documented for the copying to work.
+
+ To copy the documentation for a member of a
class for instance one can put the following in the documentation
\verbatim
- /*! @copydoc MyClass::myfunction()
+ /*! @copydoc MyClass::myfunction()
* More documentation.
*/
\endverbatim
- if the member is overloaded, you should specify the argument types
+ if the member is overloaded, you should specify the argument types
explicitly (without spaces!), like in the following:
\verbatim
@@ -2036,14 +2106,16 @@ Commands for visual enhancements
Qualified names are only needed if the context in which the documentation
block is found requires them.
- The copydoc command can be used recursively, but cycles in the copydoc
+ The \\copydoc command can be used recursively, but cycles in the \\copydoc
relation will be broken and flagged as an error.
Note that both the brief description and the detailed documentation
- will be copied. See \ref cmdcopybrief "\\cmdcopybrief" and
- \ref cmdcopydetails "\\cmdcopydetails" for copying only the brief or
+ will be copied. See \ref cmdcopybrief "\\copybrief" and
+ \ref cmdcopydetails "\\copydetails" for copying only the brief or
detailed part of the comment block.
+ \sa sections \ref cmdcopybrief "\\copybrief" and \ref cmdcopydetails "\\copydetails"
+
<hr>
\section cmdcopybrief \\copybrief <link-object>
@@ -2061,11 +2133,11 @@ only copy the detailed documentation, not the brief description.
\addindex \\dot
Starts a text fragment which should contain a valid description of a
- dot graph. The text fragment ends with \ref cmdenddot "\\enddot".
- Doxygen will pass the text on to dot and include the resulting
+ dot graph. The text fragment ends with \ref cmdenddot "\\enddot".
+ Doxygen will pass the text on to dot and include the resulting
image (and image map) into the output.
The nodes of a graph can be made clickable by using the URL attribute.
- By using the command \\ref inside the URL value you can conveniently
+ By using the command \\ref inside the URL value you can conveniently
link to an item inside doxygen. Here is an example:
\code
/*! class B */
@@ -2085,23 +2157,23 @@ class C {};
* b -> c [ arrowhead="open", style="dashed" ];
* }
* \enddot
- * Note that the classes in the above graph are clickable
+ * Note that the classes in the above graph are clickable
* (in the HTML output).
*/
\endcode
-
+
<hr>
\section cmdmsc \\msc
\addindex \\msc
Starts a text fragment which should contain a valid description of a
message sequence chart. See http://www.mcternan.me.uk/mscgen/ for examples.
- The text fragment ends with \ref cmdendmsc "\\endmsc".
- \note The text fragment should only include the part of the message
+ The text fragment ends with \ref cmdendmsc "\\endmsc".
+ \note The text fragment should only include the part of the message
sequence chart that is
within the <code>msc {...}</code> block.
\note You need to install the <code>mscgen</code> tool, if you want to use this
- command.
+ command.
Here is an example of the use of the \\msc command.
\code
@@ -2135,18 +2207,20 @@ class Receiver
void Command(int commandId);
};
-\endcode
+\endcode
+
+ \sa section \ref cmdmscfile "\\mscfile".
<hr>
-\section cmddotfile \\dotfile <file> ["caption"]
+\section cmddotfile \\dotfile <file> ["caption"]
\addindex \\dotfile
- Inserts an image generated by dot from \<file\> into the documentation.
+ Inserts an image generated by dot from \<file\> into the documentation.
- The first argument specifies the file name of the image.
- doxygen will look for files in the paths (or files) that you specified
- after the \ref cfg_dotfile_dirs "DOTFILE_DIRS" tag.
- If the dot file is found it will be used as an input file to the dot tool.
+ The first argument specifies the file name of the image.
+ doxygen will look for files in the paths (or files) that you specified
+ after the \ref cfg_dotfile_dirs "DOTFILE_DIRS" tag.
+ If the dot file is found it will be used as an input file to the dot tool.
The resulting image will be put into the correct output directory.
If the dot file name contains spaces you'll have to put quotes ("...") around it.
@@ -2156,57 +2230,61 @@ class Receiver
stripped before the caption is displayed.
<hr>
-\section cmdmscfile \\mscfile <file> ["caption"]
+\section cmdmscfile \\mscfile <file> ["caption"]
\addindex \\mscfile
- Inserts an image generated by mscgen from \<file\> into the documentation.
+ Inserts an image generated by mscgen from \<file\> into the documentation.
+ See http://www.mcternan.me.uk/mscgen/ for examples.
- The first argument specifies the file name of the image.
- doxygen will look for files in the paths (or files) that you specified
- after the \ref cfg_mscfile_dirs "MSCFILE_DIRS" tag.
- If the msc file is found it will be used as an input file to the mscgen tool.
+ The first argument specifies the file name of the image.
+ doxygen will look for files in the paths (or files) that you specified
+ after the \ref cfg_mscfile_dirs "MSCFILE_DIRS" tag.
+ If the msc file is found it will be used as an input file to the mscgen tool.
The resulting image will be put into the correct output directory.
- If the dot file name contains spaces you'll have to put quotes ("...") around it.
+ If the msc file name contains spaces you'll have to put quotes ("...") around it.
The second argument is optional and can be used to specify the caption
that is displayed below the image. This argument has to be specified
between quotes even if it does not contain any spaces. The quotes are
stripped before the caption is displayed.
+ \sa section \ref cmdmsc "\\msc".
+
<hr>
\section cmde \\e <word>
- \addindex \\e
+ \addindex \\e
Displays the argument \<word\> in italics.
Use this command to emphasize words.
\par Example:
Typing:
\verbatim
- ... this is a \e really good example ...
+ ... this is a \e really good example ...
\endverbatim
will result in the following text:<br><br>
... this is a \e really good example ...
- Equivalent to \ref cmdem "\\em".
- To emphasis multiple words use \<em\>multiple words\</em\>.
+ Equivalent to \ref cmda "\\a" and \ref cmdem "\\em".
+ To emphasize multiple words use \<em\>multiple words\</em\>.
<hr>
\section cmdem \\em <word>
- \addindex \\em
+ \addindex \\em
Displays the argument \<word\> in italics.
Use this command to emphasize words.
\par Example:
Typing:
\verbatim
- ... this is a \em really good example ...
+ ... this is a \em really good example ...
\endverbatim
will result in the following text:<br><br>
... this is a \em really good example ...
- Equivalent to \ref cmde "\\e"
+ Equivalent to \ref cmda "\\a" and \ref cmde "\\e".
+ To emphasize multiple words use \<em\>multiple words\</em\>.
<hr>
\section cmdendcode \\endcode
@@ -2214,7 +2292,7 @@ class Receiver
\addindex \\endcode
Ends a block of code.
\sa section \ref cmdcode "\\code"
-
+
<hr>
\section cmdenddot \\enddot
@@ -2265,7 +2343,7 @@ class Receiver
\addindex \\endverbatim
Ends a block of text that was started with a \\verbatim command.
-
+
\sa section \ref cmdverbatim "\\verbatim".
<hr>
@@ -2273,7 +2351,7 @@ class Receiver
\addindex \\endxmlonly
Ends a block of text that was started with a \\xmlonly command.
-
+
\sa section \ref cmdxmlonly "\\xmlonly".
<hr>
@@ -2281,15 +2359,15 @@ class Receiver
\addindex \\f\$
- Marks the start and end of an in-text formula.
+ Marks the start and end of an in-text formula.
\sa section \ref formulas "formulas" for an example.
-
+
<hr>
\section cmdfbropen \\f[
\addindex \\f[
- Marks the start of a long formula that is displayed
+ Marks the start of a long formula that is displayed
centered on a separate line.
\sa section \ref cmdfbrclose "\\f]" and section \ref formulas "formulas".
@@ -2297,7 +2375,7 @@ class Receiver
\section cmdfbrclose \\f]
\addindex \\f]
-
+
Marks the end of a long formula that is displayed
centered on a separate line.
\sa section \ref cmdfbropen "\\f[" and section \ref formulas "formulas".
@@ -2306,7 +2384,7 @@ class Receiver
\section cmdfcurlyopen \\f{environment}{
Marks the start of a formula that is in a specific environment.
- \note The second \{ is optional and is only to help editors (such as Vim) to
+ \note The second { is optional and is only to help editors (such as Vim) to
do proper syntax highlighting by making the number of opening and closing braces
the same.
@@ -2328,11 +2406,10 @@ class Receiver
require attributes). You can use the \\latexonly and \\endlatexonly
pair to provide a proper \f$\mbox{\LaTeX}\f$ alternative.
- \b Note:
- environment variables (like \$(HOME) ) are resolved inside a
+ \note environment variables (like \$(HOME) ) are resolved inside a
HTML-only block.
- \sa section \ref cmdmanonly "\\manonly", section
+ \sa section \ref cmdmanonly "\\manonly", section
\ref cmdlatexonly "\\latexonly", and section
\ref cmdrtfonly "\\rtfonly".
@@ -2344,12 +2421,12 @@ class Receiver
specific, so if you want to insert an image for more than one
format you'll have to repeat this command for each format.
- The first argument specifies the output format. Currently, the
- following values are supported: \c html and \c latex.
-
- The second argument specifies the file name of the image.
- doxygen will look for files in the paths (or files) that you specified
- after the \ref cfg_image_path "IMAGE_PATH" tag.
+ The first argument specifies the output format. Currently, the
+ following values are supported: \c html, \c latex and \c rtf.
+
+ The second argument specifies the file name of the image.
+ doxygen will look for files in the paths (or files) that you specified
+ after the \ref cfg_image_path "IMAGE_PATH" tag.
If the image is found it will be copied to the correct output directory.
If the image name contains spaces you'll have to put quotes ("...") around it.
You can also specify an absolute URL instead of a file name, but then
@@ -2357,15 +2434,15 @@ class Receiver
The third argument is optional and can be used to specify the caption
that is displayed below the image. This argument has to be specified
- on a single line and between quotes even if it does not contain any
+ on a single line and between quotes even if it does not contain any
spaces. The quotes are stripped before the caption is displayed.
- The fourth argument is also optional and can be used to specify the
- width or height of the image. This is only useful
+ The fourth argument is also optional and can be used to specify the
+ width or height of the image. This is only useful
for \f$\mbox{\LaTeX}\f$ output
- (i.e. format=<code>latex</code>). The \c sizeindication can be
- either \c width or \c height. The size should be a valid
- size specifier in \f$\mbox{\LaTeX}\f$ (for example <code>10cm</code> or
+ (i.e. format=<code>latex</code>). The \c sizeindication can be
+ either \c width or \c height. The size should be a valid
+ size specifier in \f$\mbox{\LaTeX}\f$ (for example <code>10cm</code> or
<code>6in</code> or a symbolic width like <code>\\textwidth</code>).
Here is example of a comment block:
@@ -2377,7 +2454,7 @@ class Receiver
*/
\endverbatim
- And this is an example of how the relevant part of the configuration file
+ And this is an example of how the relevant part of the configuration file
may look:
\verbatim
@@ -2388,7 +2465,7 @@ class Receiver
browser supports. For \f$\mbox{\LaTeX}\f$, the image format
must be Encapsulated PostScript (eps).
<br><br>
- Doxygen does not check if the image is in the correct format.
+ Doxygen does not check if the image is in the correct format.
So \e you have to make sure this is the case!
<hr>
@@ -2399,16 +2476,17 @@ class Receiver
generated \f$\mbox{\LaTeX}\f$ documentation only. The block ends with a
\ref cmdendlatexonly "\\endlatexonly" command.
- This command can be used to include \f$\mbox{\LaTeX}\f$ code that is too
- complex for doxygen (i.e. images, formulas, special characters). You can
- use the \\htmlonly and \\endhtmlonly pair to provide a proper HTML
+ This command can be used to include \f$\mbox{\LaTeX}\f$ code that is too
+ complex for doxygen (i.e. images, formulas, special characters). You can
+ use the \\htmlonly and \\endhtmlonly pair to provide a proper HTML
alternative.
\b Note:
- environment variables (like \$(HOME) ) are resolved inside a
+ environment variables (like \$(HOME) ) are resolved inside a
\f$\mbox{\LaTeX}\f$-only block.
\sa section \ref cmdrtfonly "\\rtfonly",
+ section \ref cmdxmlonly "\\xmlonly",
section \ref cmdmanonly "\\manonly", and
section \ref cmdhtmlonly "\\htmlonly".
@@ -2421,31 +2499,32 @@ class Receiver
\ref cmdendmanonly "\\endmanonly" command.
This command can be used to include groff code directly into
- MAN pages. You can use the \\htmlonly and \\latexonly and
- \\endhtmlonly and \\endlatexonly pairs to provide proper
+ MAN pages. You can use the \\htmlonly and \\latexonly and
+ \\endhtmlonly and \\endlatexonly pairs to provide proper
HTML and \f$\mbox{\LaTeX}\f$ alternatives.
- \sa section \ref cmdhtmlonly "\\htmlonly",
+ \sa section \ref cmdhtmlonly "\\htmlonly",
+ section \ref cmdxmlonly "\\xmlonly",
section \ref cmdrtfonly "\\rtfonly", and
section \ref cmdlatexonly "\\latexonly".
<hr>
\section cmdli \\li { item-description }
-
+
\addindex \\li
This command has one argument that continues until the first
blank line or until another \\li is encountered.
The command can be used to generate a simple, not nested list of
- arguments.
+ arguments.
Each argument should start with a \\li command.
-
+
\par Example:
Typing:
\verbatim
\li \c AlignLeft left alignment.
\li \c AlignCenter center alignment.
\li \c AlignRight right alignment
-
+
No other types of alignment are supported.
\endverbatim
will result in the following text:<br><br>
@@ -2462,29 +2541,30 @@ class Receiver
Equivalent to \ref cmdarg "\\arg"
<hr>
-\section cmdn \\n
-
+\section cmdn \\n
+
\addindex \\n
Forces a new line. Equivalent to \<br\> and inspired by
the printf function.
<hr>
\section cmdp \\p <word>
-
+
\addindex \\p
Displays the parameter \<word\> using a typewriter font.
- You can use this command to refer to member function parameters in
+ You can use this command to refer to member function parameters in
the running text.
\par Example:
\verbatim
... the \p x and \p y coordinates are used to ...
- \endverbatim
+ \endverbatim
This will result in the following text:<br><br>
... the \p x and \p y coordinates are used to ...
Equivalent to \ref cmdc "\\c"
-
+ To have multiple words in typewriter font use \<tt\>multiple words\</tt\>.
+
<hr>
\section cmdrtfonly \\rtfonly
@@ -2494,13 +2574,14 @@ class Receiver
\ref cmdendrtfonly "\\endrtfonly" command.
This command can be used to include RTF code that is too complex
- for doxygen.
+ for doxygen.
\b Note:
- environment variables (like \$(HOME) ) are resolved inside a
+ environment variables (like \$(HOME) ) are resolved inside a
RTF-only block.
- \sa section \ref cmdmanonly "\\manonly", section
+ \sa section \ref cmdmanonly "\\manonly", section
+ \ref cmdxmlonly "\\xmlonly", section
\ref cmdlatexonly "\\latexonly", and section
\ref cmdhtmlonly "\\htmlonly".
@@ -2508,15 +2589,15 @@ class Receiver
\section cmdverbatim \\verbatim
\addindex \\verbatim
- Starts a block of text that will be verbatim included in
- the documentation. The block should end with a
- \ref cmdendverbatim "\\endverbatim" block.
+ Starts a block of text that will be verbatim included in
+ the documentation. The block should end with a
+ \ref cmdendverbatim "\\endverbatim" block.
All commands are disabled in a verbatim block.
- \warning Make sure you include a \\endverbatim command for each
+ \warning Make sure you include a \\endverbatim command for each
\\verbatim command or the parser will get confused!
- \sa section \ref cmdcode "\\code", and
+ \sa section \ref cmdcode "\\code", and
section \ref cmdverbinclude "\\verbinclude".
<hr>
@@ -2527,25 +2608,27 @@ class Receiver
generated XML output only. The block ends with a
endxmlonly command.
- This command can be used to include custom XML tags.
+ This command can be used to include custom XML tags.
- \sa section \ref cmdhtmlonly "\\htmlonly" and section
- \ref cmdlatexonly "\\latexonly".
+ \sa section \ref cmdmanonly "\\manonly", section
+ \ref cmdrtfonly "\\rtfonly", section
+ \ref cmdlatexonly "\\latexonly", and section
+ \ref cmdhtmlonly "\\htmlonly".
<hr>
\section cmdbackslash \\\\
\addindex \\\\
- This command writes a backslash character (\\) to the
- output. The backslash has to be escaped in some
+ This command writes a backslash character (\\) to the
+ output. The backslash has to be escaped in some
cases because doxygen uses it to detect commands.
<hr>
\section cmdat \\\@
\addindex \\\@
- This command writes an at-sign (\@) to the output.
- The at-sign has to be escaped in some cases
+ This command writes an at-sign (\@) to the output.
+ The at-sign has to be escaped in some cases
because doxygen uses it to detect JavaDoc commands.
<hr>
@@ -2563,67 +2646,67 @@ class Receiver
deutsch. \~ output for all languages.
*/
\endverbatim
-
+
<hr>
\section cmdamp \\\&
\addindex \\\&
- This command writes the \& character to output.
+ This command writes the \& character to output.
This character has to be escaped because it has a special meaning in HTML.
<hr>
\section cmddollar \\\$
\addindex \\\$
- This command writes the \$ character to the output.
- This character has to be escaped in some cases, because it is used to expand
+ This command writes the \$ character to the output.
+ This character has to be escaped in some cases, because it is used to expand
environment variables.
<hr>
\section cmdhash \\\#
\addindex \\\#
- This command writes the \# character to the output. This
+ This command writes the \# character to the output. This
character has to be escaped in some cases, because it is used to refer
- to documented entities.
+ to documented entities.
<hr>
\section cmdlt \\\<
\addindex \\\<
- This command writes the \< character to the output.
+ This command writes the \< character to the output.
This character has to be escaped because it has a special meaning in HTML.
<hr>
\section cmdgt \\\>
\addindex \\\>
- This command writes the \> character to the output. This
+ This command writes the \> character to the output. This
character has to be escaped because it has a special meaning in HTML.
<hr>
\section cmdperc \\\%
\addindex \\\%
- This command writes the \% character to the output. This
- character has to be escaped in some cases, because it is used to
- prevent auto-linking to word that is also a documented class or struct.
+ This command writes the \% character to the output. This
+ character has to be escaped in some cases, because it is used to
+ prevent auto-linking to word that is also a documented class or struct.
<hr>
\section cmdquot \\"
\addindex \\\"
- This command writes the \" character to the output. This
+ This command writes the \" character to the output. This
character has to be escaped in some cases, because it is used in pairs
to indicate an unformatted text fragment.
<hr>
-\htmlonly <center> \endhtmlonly
+\htmlonly <center> \endhtmlonly
<h2>
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
Commands included for Qt compatibility
-\htmlonly --- \endhtmlonly
+\htmlonly --- \endhtmlonly
</h2>
\htmlonly </center>\endhtmlonly
diff --git a/doc/config.doc b/doc/config.doc
index 1a0e130..23d3b54 100644
--- a/doc/config.doc
+++ b/doc/config.doc
@@ -122,6 +122,7 @@ followed by the descriptions of the tags grouped by category.
\refitem cfg_file_version_filter FILE_VERSION_FILTER
\refitem cfg_filter_patterns FILTER_PATTERNS
\refitem cfg_filter_source_files FILTER_SOURCE_FILES
+\refitem cfg_filter_source_patterns FILTER_SOURCE_PATTERNS
\refitem cfg_force_local_includes FORCE_LOCAL_INCLUDES
\refitem cfg_formula_fontsize FORMULA_FONTSIZE
\refitem cfg_formula_transparent FORMULA_TRANSPARENT
@@ -215,6 +216,7 @@ followed by the descriptions of the tags grouped by category.
\refitem cfg_predefined PREDEFINED
\refitem cfg_project_name PROJECT_NAME
\refitem cfg_project_number PROJECT_NUMBER
+\refitem cfg_qch_file QCH_FILE
\refitem cfg_qhg_location QHG_LOCATION
\refitem cfg_qhp_cust_filter_attrs QHP_CUST_FILTER_ATTRS
\refitem cfg_qhp_cust_filter_name QHP_CUST_FILTER_NAME
@@ -1101,8 +1103,8 @@ AClass::ANamespace, ANamespace::*Test
basis. Doxygen will compare the file name with each pattern and apply the
filter if there is a match. The filters are a list of the form:
pattern=filter (like <code>*.cpp=my_cpp_filter</code>). See \c INPUT_FILTER for further
- info on how filters are used. If \c FILTER_PATTERNS is empty, \c INPUT_FILTER
- is applied to all files.
+ info on how filters are used. If \c FILTER_PATTERNS is empty or if
+ non of the patterns match the file name, \c INPUT_FILTER is applied.
\anchor cfg_filter_source_files
<dt>\c FILTER_SOURCE_FILES <dd>
@@ -1112,6 +1114,15 @@ AClass::ANamespace, ANamespace::*Test
files that are used for producing the source files to browse
(i.e. when SOURCE_BROWSER is set to YES).
+\anchor cfg_filter_source_patterns
+<dt>\c FILTER_SOURCE_PATTERNS <dd>
+ \addindex FILTER_SOURCE_PATTERNS
+ The \c FILTER_SOURCE_PATTERNS tag can be used to specify source filters per
+ file pattern. A pattern will override the setting for \c FILTER_PATTERN (if any)
+ and it is also possible to disable source filtering for a specific pattern
+ using *.ext= (so without naming a filter). This option only has effect when
+ \c FILTER_SOURCE_FILES is enabled.
+
</dl>
\section sourcebrowser_index Source browsing related options
@@ -1481,6 +1492,13 @@ The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
to generate a Qt Compressed Help (.qch) of the generated HTML
documentation.
+\anchor cfg_qch_file
+<dt>\c QCH_FILE <dd>
+ \addindex QCH_FILE
+ If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+ be used to specify the file name of the resulting .qch file.
+ The path specified is relative to the HTML output folder.
+
\anchor cfg_qhp_namespace
<dt>\c QHP_NAMESPACE <dd>
\addindex QHP_NAMESPACE
@@ -2374,7 +2392,7 @@ PROJECT_NAME = Example
INPUT = example.cc example.h
WARNINGS = YES
TAGFILES = qt.tag
-PERL_PATH = /usr/bin/perl
+PERL_PATH = /usr/local/bin/perl
SEARCHENGINE = NO
\endverbatim
diff --git a/doc/htmlcmds.doc b/doc/htmlcmds.doc
index d87ba3c..9c80e50 100644
--- a/doc/htmlcmds.doc
+++ b/doc/htmlcmds.doc
@@ -18,7 +18,7 @@
Here is a list of all HTML commands that may be used inside the
documentation. Note that although these HTML tags are translated to the
-proper commands for outer formats other than HTML, all attributes
+proper commands for output formats other than HTML, all attributes
of a HTML tag are passed on to the HTML output only
(the HREF and NAME attributes for the A tag are the only exception).
@@ -38,7 +38,7 @@ of a HTML tag are passed on to the HTML output only
<li><tt>\<CODE\></tt> Starts a piece of text displayed in a typewriter font.
Note that for C# code, this command is equivalent to
\ref cmdcode "\\code".
-<li><tt>\</CODE\></tt> End a <tt>\<CODE\></tt> section.
+<li><tt>\</CODE\></tt> Ends a <tt>\<CODE\></tt> section.
Note that for C# code, this command is equivalent to
\ref cmdendcode "\\endcode".
<li><tt>\<DD\></tt> Starts an item description.
@@ -101,7 +101,7 @@ of a HTML tag are passed on to the HTML output only
<li><tt>\<UL\></tt> Starts an unnumbered item list.
<li><tt>\</UL\></tt> Ends an unnumbered item list.
<li><tt>\<VAR\></tt> Starts a piece of text displayed in an italic font.
-<li><tt>\</VAR\></tt> Ends a <tt>\</VAR\></tt> section.
+<li><tt>\</VAR\></tt> Ends a <tt>\<VAR\></tt> section.
</ul>
The special HTML character entities that are recognized by Doxygen:
diff --git a/doc/install.doc b/doc/install.doc
index 321a6fd..bb814ec 100644
--- a/doc/install.doc
+++ b/doc/install.doc
@@ -63,11 +63,11 @@ tools should be installed.
This is needed to build the GUI front-end doxywizard.
<li>A \f$\mbox{\LaTeX}\f$ distribution: for instance
<a href="http://www.tug.org/interest.html#free">teTeX 1.0</a>
- \latexonly \\par (see {\tt http://www.tug.org/interest.html\#free})\endlatexonly.
+ \latexonly (see {\tt http://www.tug.org/interest.html\#free})\endlatexonly.
This is needed for generating LaTeX, Postscript, and PDF output.
<li><a href="http://www.graphviz.org/">
the Graph visualization toolkit version 1.8.10 or higher</a>
- \latexonly \\par (see {\tt http://www.graphviz.org/})\endlatexonly.
+ \latexonly (see {\tt http://www.graphviz.org/})\endlatexonly.
Needed for the include dependency graphs,
the graphical inheritance graphs, and the collaboration graphs.
If you compile graphviz yourself, make sure you do include
diff --git a/doc/language.doc b/doc/language.doc
index 6998f67..a556ad7 100644
--- a/doc/language.doc
+++ b/doc/language.doc
@@ -23,7 +23,7 @@ text fragments, generated by doxygen, can be produced in languages other
than English (the default). The output language is chosen through the
configuration file (with default name and known as Doxyfile).
-Currently (version 1.7.1), 38 languages
+Currently (version 1.7.2), 38 languages
are supported (sorted alphabetically):
Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese
Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto,
diff --git a/doc/translator_report.txt b/doc/translator_report.txt
index b5a5168..bdd6350 100644
--- a/doc/translator_report.txt
+++ b/doc/translator_report.txt
@@ -1,4 +1,4 @@
-(1.7.1)
+(1.7.2)
Doxygen supports the following 38 languages (sorted alphabetically):
diff --git a/src/classdef.cpp b/src/classdef.cpp
index e38a251..a924dd6 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -1315,6 +1315,7 @@ void ClassDef::writeMemberGroups(OutputList &ol)
// write user defined member groups
if (m_impl->memberGroupSDict)
{
+ m_impl->memberGroupSDict->sort();
MemberGroupSDict::Iterator mgli(*m_impl->memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
diff --git a/src/cmdmapper.cpp b/src/cmdmapper.cpp
index 1e5cc17..1682a95 100644
--- a/src/cmdmapper.cpp
+++ b/src/cmdmapper.cpp
@@ -102,6 +102,7 @@ CommandMap cmdMap[] =
{ "$", CMD_DOLLAR },
{ "#", CMD_HASH },
{ "%", CMD_PERCENT },
+ { "::", CMD_DCOLON },
{ "\"", CMD_QUOTE },
{ "_internalref", CMD_INTERNALREF },
{ "dot", CMD_DOT },
diff --git a/src/cmdmapper.h b/src/cmdmapper.h
index 1f4bd02..30e5b68 100644
--- a/src/cmdmapper.h
+++ b/src/cmdmapper.h
@@ -114,7 +114,8 @@ enum CommandType
CMD_COPYBRIEF = 80,
CMD_COPYDETAILS = 81,
CMD_QUOTE = 82,
- CMD_MSCFILE = 83
+ CMD_MSCFILE = 83,
+ CMD_DCOLON = 84
};
enum HtmlTagType
diff --git a/src/code.l b/src/code.l
index e973bf9..82f807e 100644
--- a/src/code.l
+++ b/src/code.l
@@ -621,7 +621,7 @@ static void addParmType()
static void addUsingDirective(const char *name)
{
- if (g_exampleBlock && g_sourceFileDef && name)
+ if (g_sourceFileDef && name)
{
NamespaceDef *nd = Doxygen::namespaceSDict->find(name);
if (nd)
@@ -3394,10 +3394,12 @@ void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
g_exampleName = exName;
g_sourceFileDef = fd;
g_lineNumbers = fd!=0 && showLineNumbers;
- if (exBlock && fd==0)
+ bool cleanupSourceDef = FALSE;
+ if (/* exBlock */ fd==0)
{
// create a dummy filedef for the example
- g_sourceFileDef = new FileDef("",exName);
+ g_sourceFileDef = new FileDef("",(exName?exName:"generated"));
+ cleanupSourceDef = TRUE;
}
if (g_sourceFileDef)
{
@@ -3433,7 +3435,7 @@ void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
endFontClass();
g_code->endCodeLine();
}
- if (exBlock && fd==0)
+ if (cleanupSourceDef)
{
// delete the temporary file definition used for this example
delete g_sourceFileDef;
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 660dae6..d3a7a92 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -25,6 +25,7 @@
#include <qstack.h>
#include <qregexp.h>
#include <qtextstream.h>
+#include <qglobal.h>
#include "bufstr.h"
#include "debug.h"
@@ -33,6 +34,7 @@
#include "doxygen.h"
#include "util.h"
+#include <assert.h>
#define ADDCHAR(c) g_outBuf->addChar(c)
#define ADDARRAY(a,s) g_outBuf->addArray(a,s)
@@ -134,7 +136,7 @@ static inline void copyToOutput(const char *s,int len)
}
}
}
- else
+ else if (len>0)
{
ADDARRAY(s,len);
static int tabSize=Config_getInt("TAB_SIZE");
@@ -318,17 +320,23 @@ void replaceComment(int offset);
copyToOutput(yytext,yyleng);
}
<Scan>("//!"|"///").*/\n[ \t]*"//"[\/!][^\/] { /* start C++ style special comment block */
- if (g_mlBrief) REJECT; // bail out if we do not need to convert
- int i=3;
- if (yytext[2]=='/')
+ if (g_mlBrief)
{
- while (i<(int)yyleng && yytext[i]=='/') i++;
+ REJECT; // bail out if we do not need to convert
+ }
+ else
+ {
+ int i=3;
+ if (yytext[2]=='/')
+ {
+ while (i<(int)yyleng && yytext[i]=='/') i++;
+ }
+ g_blockHeadCol=g_col;
+ copyToOutput("/**",3);
+ replaceAliases(yytext+i);
+ g_inSpecialComment=TRUE;
+ BEGIN(SComment);
}
- g_blockHeadCol=g_col;
- copyToOutput("/**",3);
- replaceAliases(yytext+i);
- g_inSpecialComment=TRUE;
- BEGIN(SComment);
}
<Scan>"//##Documentation".*/\n { /* Start of Rational Rose ANSI C++ comment block */
if (g_mlBrief) REJECT;
@@ -602,7 +610,7 @@ void replaceComment(int offset);
}
<SComment>\n[ \t]*"//!" |
<SComment>\n[ \t]*"//!<"/.*\n |
-<SComment>\n[ \t]*"//!"[^<\n]/.*\n {
+<SComment>\n[ \t]*"//!"[^<\n]/.*\n {
replaceComment(1);
g_readLineCtx=YY_START;
BEGIN(ReadLine);
@@ -752,24 +760,25 @@ void replaceComment(int offset);
%%
-void replaceComment(int offset)
+void replaceComment(int offset)
{
- if (g_mlBrief)
- {
- copyToOutput(yytext,yyleng);
- }
- else
- {
+ if (g_mlBrief)
+ {
+ copyToOutput(yytext,yyleng);
+ }
+ else
+ {
//printf("replaceComment(%s)\n",yytext);
- int i=computeIndent(&yytext[offset]);
- if (i==g_blockHeadCol)
- {
- replaceCommentMarker(yytext,yyleng);
- }
- else
- {
- copyToOutput(" */",3);
- int i;for (i=yyleng-1;i>=0;i--) unput(yytext[i]);
+ int i=computeIndent(&yytext[offset]);
+ if (i==g_blockHeadCol)
+ {
+ replaceCommentMarker(yytext,yyleng);
+ }
+ else
+ {
+ copyToOutput(" */",3);
+ int i;for (i=yyleng-1;i>=0;i--) unput(yytext[i]);
+ g_inSpecialComment=FALSE;
BEGIN(Scan);
}
}
diff --git a/src/commentscan.l b/src/commentscan.l
index 5926d7c..c51431b 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2661,7 +2661,7 @@ void openGroup(Entry *e,const char *,int)
}
else // start of a member group
{
- //printf(" membergroup id=%d\n",g_memberGroupId);
+ //printf(" membergroup id=%d %s\n",g_memberGroupId,g_memberGroupHeader.data());
if (g_memberGroupId==DOX_NOGROUP) // no group started yet
{
static int curGroupId=0;
diff --git a/src/compound.xsd b/src/compound.xsd
index 7f67a2c..0b2ed4d 100644
--- a/src/compound.xsd
+++ b/src/compound.xsd
@@ -586,12 +586,6 @@
<xsd:sequence>
<xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="docParamName" mixed="true">
- <xsd:sequence>
- <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
- </xsd:sequence>
<xsd:attribute name="direction" type="DoxParamDir" use="optional" />
</xsd:complexType>
diff --git a/src/compound_xsd.h b/src/compound_xsd.h
index 0404b78..1961b07 100644
--- a/src/compound_xsd.h
+++ b/src/compound_xsd.h
@@ -586,12 +586,6 @@
" <xsd:sequence>\n"
" <xsd:element name=\"ref\" type=\"refTextType\" minOccurs=\"0\" maxOccurs=\"1\" />\n"
" </xsd:sequence>\n"
-" </xsd:complexType>\n"
-"\n"
-" <xsd:complexType name=\"docParamName\" mixed=\"true\">\n"
-" <xsd:sequence>\n"
-" <xsd:element name=\"ref\" type=\"refTextType\" minOccurs=\"0\" maxOccurs=\"1\" />\n"
-" </xsd:sequence>\n"
" <xsd:attribute name=\"direction\" type=\"DoxParamDir\" use=\"optional\" />\n"
" </xsd:complexType>\n"
"\n"
diff --git a/src/config.xml b/src/config.xml
index be324a4..d7d4669 100644
--- a/src/config.xml
+++ b/src/config.xml
@@ -420,6 +420,14 @@ Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
Note: This option applies only to the class list, not to the
alphabetical list.
' defval='0'/>
+ <option type='bool' id='STRICT_PROTO_MATCHING' docs='
+If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
+do proper type resolution of all parameters of a function it will reject a
+match between the prototype and the implementation of a member function even
+if there is only one candidate or it is obvious which candidate to choose
+by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
+will still accept a match between prototype and implementation in such cases.
+' defval='0'/>
<option type='bool' id='GENERATE_TODOLIST' docs='
The GENERATE_TODOLIST tag can be used to enable (YES) or
disable (NO) the todo list. This list is created by putting \todo
@@ -663,8 +671,8 @@ The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
basis. Doxygen will compare the file name with each pattern and apply the
filter if there is a match. The filters are a list of the form:
pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
-info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
-is applied to all files.
+info on how filters are used. If FILTER_PATTERNS is empty or if
+non of the patterns match the file name, INPUT_FILTER is applied.
'>
</option>
<option type='bool' id='FILTER_SOURCE_FILES' docs='
@@ -672,6 +680,13 @@ If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
INPUT_FILTER) will be used to filter the input files when producing source
files to browse (i.e. when SOURCE_BROWSER is set to YES).
' defval='0'/>
+ <option type='list' id='FILTER_SOURCE_PATTERNS' format='file' docs='
+The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+pattern. A pattern will override the setting for FILTER_PATTERN (if any)
+and it is also possible to disable source filtering for a specific pattern
+using *.ext= (so without naming a filter). This option only has effect when
+FILTER_SOURCE_FILES is enabled.
+' depends='FILTER_SOURCE_FILES'/>
</group>
<group name='Source Browser' docs='configuration options related to source browsing'>
<option type='bool' id='SOURCE_BROWSER' docs='
diff --git a/src/configoptions.cpp b/src/configoptions.cpp
index 38f7ed8..d3d4aa4 100644
--- a/src/configoptions.cpp
+++ b/src/configoptions.cpp
@@ -601,6 +601,14 @@ void addConfigOptions(Config *cfg)
);
//----
cb = cfg->addBool(
+ "STRICT_PROTO_MATCHING",
+ "If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper type resolution of all parameters of a function it will reject a\n"
+ "match between the prototype and the implementation of a member function even if there is only one candidate or it is obvious which candidate to choose by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen\n"
+ "will still accept a match between prototype and implementation in such cases.",
+ FALSE
+ );
+ //----
+ cb = cfg->addBool(
"GENERATE_TODOLIST",
"The GENERATE_TODOLIST tag can be used to enable (YES) or\n"
"disable (NO) the todo list. This list is created by putting \\todo\n"
@@ -934,8 +942,8 @@ void addConfigOptions(Config *cfg)
"filter if there is a match.\n"
"The filters are a list of the form:\n"
"pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further\n"
- "info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER\n"
- "is applied to all files."
+ "info on how filters are used. If FILTER_PATTERNS is empty or if\n"
+ "non of the patterns match the file name, INPUT_FILTER is applied."
);
cl->setWidgetType(ConfigList::File);
//----
@@ -946,6 +954,17 @@ void addConfigOptions(Config *cfg)
"files to browse (i.e. when SOURCE_BROWSER is set to YES).",
FALSE
);
+ //----
+ cl = cfg->addList(
+ "FILTER_SOURCE_PATTERNS",
+ "The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file\n"
+ "pattern. A pattern will override the setting for FILTER_PATTERN (if any)\n"
+ "and it is also possible to disable source filtering for a specific pattern\n"
+ "using *.ext= (so without naming a filter). This option only has effect when\n"
+ "FILTER_SOURCE_FILES is enabled."
+ );
+ cl->addDependency("FILTER_SOURCE_FILES");
+ cl->setWidgetType(ConfigList::File);
//---------------------------------------------------------------------------
cfg->addInfo("Source Browser","configuration options related to source browsing");
//---------------------------------------------------------------------------
diff --git a/src/declinfo.l b/src/declinfo.l
index 3affce2..13c0715 100644
--- a/src/declinfo.l
+++ b/src/declinfo.l
@@ -128,9 +128,11 @@ ID "$"?([a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF]*)|(@[0-9]+)
name += yytext;
}
}
-<Start>(~{B}*)?{ID}/({B}*"["{B}*"]")* { // the []'s are for Java,
+<Start>([~!]{B}*)?{ID}/({B}*"["{B}*"]")* { // the []'s are for Java,
// the / was add to deal with multi-
// dimensional C++ arrays like A[][15]
+ // the leading ~ is for a destructor
+ // the leading ! is for a C++/CLI finalizer (see bug 456475 and 635198)
addTypeName();
name += yytext;
}
diff --git a/src/definition.cpp b/src/definition.cpp
index 6cec012..e4cf2c8 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -544,7 +544,7 @@ static bool readCodeFragment(const char *fileName,
static bool filterSourceFiles = Config_getBool("FILTER_SOURCE_FILES");
//printf("readCodeFragment(%s,%d,%d)\n",fileName,startLine,endLine);
if (fileName==0 || fileName[0]==0) return FALSE; // not a valid file name
- QCString filter = getFileFilter(fileName);
+ QCString filter = getFileFilter(fileName,TRUE);
FILE *f=0;
bool usePipe = !filter.isEmpty() && filterSourceFiles;
if (!usePipe) // no filter given or wanted
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 1b51d0a..55c1f0f 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -540,6 +540,7 @@ static void detectNoDocumentedParams()
g_memberDef->hasDocumentedReturnType() ||
returnType.isEmpty() || // empty return type
returnType.find("void")!=-1 || // void return type
+ returnType.find("subroutine")!=-1 || // fortran subroutine
g_memberDef->isConstructor() || // a constructor
g_memberDef->isDestructor() // or destructor
)
@@ -1107,8 +1108,12 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children)
if (g_token->name.left(1)=="#" || g_token->name.left(2)=="::")
{
warn_doc_error(g_fileName,doctokenizerYYlineno,"warning: explicit link request to '%s' could not be resolved",qPrint(name));
+ children.append(new DocWord(parent,g_token->name));
+ }
+ else
+ {
+ children.append(new DocWord(parent,name));
}
- children.append(new DocWord(parent,name));
}
}
@@ -1179,6 +1184,9 @@ reparsetoken:
case CMD_HASH:
children.append(new DocSymbol(parent,DocSymbol::Hash));
break;
+ case CMD_DCOLON:
+ children.append(new DocSymbol(parent,DocSymbol::DoubleColon));
+ break;
case CMD_PERCENT:
children.append(new DocSymbol(parent,DocSymbol::Percent));
break;
@@ -3018,6 +3026,7 @@ int DocIndexEntry::parse()
case CMD_AMP: m_entry+='&'; break;
case CMD_DOLLAR: m_entry+='$'; break;
case CMD_HASH: m_entry+='#'; break;
+ case CMD_DCOLON: m_entry+="::"; break;
case CMD_PERCENT: m_entry+='%'; break;
case CMD_QUOTE: m_entry+='"'; break;
default:
@@ -4772,6 +4781,9 @@ int DocPara::handleCommand(const QCString &cmdName)
case CMD_HASH:
m_children.append(new DocSymbol(this,DocSymbol::Hash));
break;
+ case CMD_DCOLON:
+ m_children.append(new DocSymbol(this,DocSymbol::DoubleColon));
+ break;
case CMD_PERCENT:
m_children.append(new DocSymbol(this,DocSymbol::Percent));
break;
@@ -6197,6 +6209,9 @@ void DocText::parse()
case CMD_HASH:
m_children.append(new DocSymbol(this,DocSymbol::Hash));
break;
+ case CMD_DCOLON:
+ m_children.append(new DocSymbol(this,DocSymbol::DoubleColon));
+ break;
case CMD_PERCENT:
m_children.append(new DocSymbol(this,DocSymbol::Percent));
break;
diff --git a/src/docparser.h b/src/docparser.h
index 6b2a863..6494d08 100644
--- a/src/docparser.h
+++ b/src/docparser.h
@@ -313,7 +313,7 @@ class DocSymbol : public DocNode
{
public:
enum SymType { Unknown=0, BSlash, At, Less, Greater, Amp, Dollar, Hash,
- Percent, Copy, Tm, Reg, Apos, Quot, Uml, Acute,
+ DoubleColon, Percent, Copy, Tm, Reg, Apos, Quot, Uml, Acute,
Grave, Circ, Tilde, Szlig, Cedil, Ring, Nbsp, Slash,
Lsquo, Rsquo, Ldquo, Rdquo, Ndash, Mdash, Aelig, AElig
};
diff --git a/src/docsets.cpp b/src/docsets.cpp
index fa14cfa..17fbd7d 100644
--- a/src/docsets.cpp
+++ b/src/docsets.cpp
@@ -343,6 +343,16 @@ void DocSets::addIndexItem(Definition *context,MemberDef *md,const char *)
case MemberDef::Event:
type="event"; break;
}
+ cd = md->getClassDef();
+ nd = md->getNamespaceDef();
+ if (cd)
+ {
+ scope = cd->qualifiedName();
+ }
+ else if (nd)
+ {
+ scope = nd->name();
+ }
writeToken(m_tts,md,type,lang,scope,md->anchor());
}
else if (context && context->isLinkable())
@@ -404,7 +414,7 @@ void DocSets::addIndexItem(Definition *context,MemberDef *md,const char *)
}
if (m_scopes.find(context->getOutputFileBase())==0)
{
- writeToken(m_tts,context,type,lang,0,0,decl);
+ writeToken(m_tts,context,type,lang,scope,0,decl);
m_scopes.append(context->getOutputFileBase(),(void*)0x8);
}
}
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 5cec5d7..a463c34 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -310,6 +310,7 @@ VERBATIM "verbatim"{BLANK}*
SPCMD1 {CMD}([a-z_A-Z][a-z_A-Z0-9]*|{VERBATIM})
SPCMD2 {CMD}[\\@<>&$#%~"]
SPCMD3 {CMD}form#[0-9]+
+SPCMD4 {CMD}"::"
INOUT "in"|"out"|("in"{BLANK}*","{BLANK}*"out")|("out"{BLANK}*","{BLANK}*"in")
PARAMIO {CMD}param{BLANK}*"["{BLANK}*{INOUT}{BLANK}*"]"
TEMPCHAR [a-z_A-Z0-9,: \t\*\&]
@@ -429,7 +430,8 @@ REFWORD {LABELID}|{REFWORD2}
return TK_COMMAND;
}
<St_Para>{SPCMD1} |
-<St_Para>{SPCMD2} { /* special command */
+<St_Para>{SPCMD2} |
+<St_Para>{SPCMD4} { /* special command */
g_token->name = yytext+1;
g_token->name = g_token->name.stripWhiteSpace();
g_token->paramDir=TokenInfo::Unspecified;
diff --git a/src/dot.cpp b/src/dot.cpp
index 523d515..423e45d 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -997,9 +997,9 @@ bool DotManager::run()
{
uint numDotRuns = m_dotRuns.count();
uint numDotMaps = m_dotMaps.count();
- if (numDotRuns+numDotMaps>0)
+ if (numDotRuns+numDotMaps>1)
{
- msg("Generating dot graphs using %d parallel threads...\n",m_workers.count());
+ msg("Generating dot graphs using %d parallel threads...\n",QMIN(numDotRuns+numDotMaps,m_workers.count()));
}
int i=1;
QListIterator<DotRunner> li(m_dotRuns);
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 7ff5c89..f229ded 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -3921,7 +3921,7 @@ static bool findTemplateInstanceRelation(Entry *root,
// int *tempArgIndex;
// for (;(tempArgIndex=qdi.current());++qdi)
// {
- // printf("(%s->%d) ",qdi.currentKey().data(),*tempArgIndex);
+ // printf("(%s->%d) ",qdi.currentKey(),*tempArgIndex);
// }
//}
//printf("\n");
@@ -5651,26 +5651,53 @@ static void findMember(EntryNav *rootNav,
if (count==0 && !(isFriend && funcType=="class"))
{
int candidates=0;
+ ClassDef *ccd = 0, *ecd = 0;
+ MemberDef *cmd = 0, *emd = 0;
if (mn->count()>0)
{
//printf("Assume template class\n");
for (mni.toFirst();(md=mni.current());++mni)
{
- ClassDef *cd=md->getClassDef();
- //printf("cd->name()==%s className=%s\n",cd->name().data(),className.data());
- if (cd!=0 && rightScopeMatch(cd->name(),className))
+ ccd=md->getClassDef();
+ cmd=md;
+ //printf("ccd->name()==%s className=%s\n",ccd->name().data(),className.data());
+ if (ccd!=0 && rightScopeMatch(ccd->name(),className))
{
LockingPtr<ArgumentList> templAl = md->templateArguments();
if (root->tArgLists && templAl!=0 &&
root->tArgLists->getLast()->count()<=templAl->count())
{
- addMethodToClass(rootNav,cd,md->name(),isFriend);
+ addMethodToClass(rootNav,ccd,md->name(),isFriend);
return;
}
+ if (md->argsString()==argListToString(root->argList,TRUE,FALSE))
+ { // exact argument list match -> remember
+ ecd = ccd;
+ emd = cmd;
+ }
candidates++;
}
}
}
+ static bool strictProtoMatching = Config_getBool("STRICT_PROTO_MATCHING");
+ if (!strictProtoMatching)
+ {
+ if (candidates==1 && ccd && cmd)
+ {
+ // we didn't find an actual match on argument lists, but there is only 1 member with this
+ // name in the same scope, so that has to be the one.
+ addMemberDocs(rootNav,cmd,funcDecl,0,overloaded,0);
+ return;
+ }
+ else if (candidates>1 && ecd && emd)
+ {
+ // we didn't find a unique match using type resolution,
+ // but one of the matches has the exact same signature so
+ // we take that one.
+ addMemberDocs(rootNav,emd,funcDecl,0,overloaded,0);
+ return;
+ }
+ }
QCString warnMsg = "warning: no ";
if (noMatchCount>1) warnMsg+="uniquely ";
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 786fcf1..1cc840b 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -61,7 +61,7 @@ class DevNullCodeDocInterface : public CodeOutputInterface
//---------------------------------------------------------------------------
/*! create a new file definition, where \a p is the file path,
- \a nm the file name, and \a ref is an HTML anchor name if the
+ \a nm the file name, and \a lref is an HTML anchor name if the
file was read from a tag file or 0 otherwise
*/
FileDef::FileDef(const char *p,const char *nm,
@@ -431,6 +431,7 @@ void FileDef::writeMemberGroups(OutputList &ol)
/* write user defined member groups */
if (memberGroupSDict)
{
+ memberGroupSDict->sort();
MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
@@ -789,7 +790,7 @@ void FileDef::writeSource(OutputList &ol)
pIntf->resetCodeParserState();
ol.startCodeFragment();
pIntf->parseCode(ol,0,
- fileToString(absFilePath(),filterSourceFiles),
+ fileToString(absFilePath(),filterSourceFiles,TRUE),
FALSE,0,this
);
ol.endCodeFragment();
@@ -806,7 +807,7 @@ void FileDef::parseSource()
pIntf->resetCodeParserState();
pIntf->parseCode(
devNullIntf,0,
- fileToString(absFilePath(),filterSourceFiles),
+ fileToString(absFilePath(),filterSourceFiles,TRUE),
FALSE,0,this
);
}
diff --git a/src/fortranscanner.l b/src/fortranscanner.l
index cb6a9f9..3156eb1 100644
--- a/src/fortranscanner.l
+++ b/src/fortranscanner.l
@@ -527,7 +527,7 @@ PREFIX (RECURSIVE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,2}(RECURSIVE|PURE|ELEMENTA
/*------- module/global/typedef variable ---------------------------------------------------*/
-<SubprogBody,SubprogBodyContains>^{BS}"end"({BS}{SUBPROG}({BS_}{ID})?)?{BS}/(\n|!) {
+<SubprogBody,SubprogBodyContains>^{BS}[0-9]*{BS}"end"({BS}{SUBPROG}({BS_}{ID})?)?{BS}/(\n|!) {
//fprintf(stderr,"1e=========> got end subprog: %s\n", yytext);
/* args is used for parameters in list of functions, argList for
@@ -696,7 +696,7 @@ PREFIX (RECURSIVE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,2}(RECURSIVE|PURE|ELEMENTA
// TYPE_SPEC is for old function style function result
result= yytext;
result= result.stripWhiteSpace();
- extractPrefix(result);
+ //extractPrefix(result);
//fprintf(stderr, "===%s\n", (const char*)result);
current->type = result;
yy_push_state(SubprogPrefix);
@@ -712,7 +712,7 @@ PREFIX (RECURSIVE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,2}(RECURSIVE|PURE|ELEMENTA
// Fortran subroutine or function found
result= yytext;
result= result.stripWhiteSpace();
- extractPrefix(result);
+ //extractPrefix(result);
addSubprogram(result);
yy_push_state(Subprog);
}
@@ -841,7 +841,9 @@ PREFIX (RECURSIVE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,2}(RECURSIVE|PURE|ELEMENTA
%%
//----------------------------------------------------------------------------
-static void extractPrefix(QCString &text) {
+#if 0
+static void extractPrefix(QCString &text)
+{
int prefixIndex = 0;
int curIndex = 0;
bool cont = TRUE;
@@ -860,6 +862,7 @@ static void extractPrefix(QCString &text) {
}
}
}
+#endif
static int getAmpersandAtTheStart(const char *buf, int length)
{
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index aaf4d1b..7d7ea6c 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -753,6 +753,7 @@ void GroupDef::writeMemberGroups(OutputList &ol)
/* write user defined member groups */
if (memberGroupSDict)
{
+ memberGroupSDict->sort();
/* write user defined member groups */
MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 81dc753..081dcc9 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -179,6 +179,7 @@ void HtmlDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "&amp;"; break;
case DocSymbol::Dollar: m_t << "$"; break;
case DocSymbol::Hash: m_t << "#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "%"; break;
case DocSymbol::Copy: m_t << "&copy;"; break;
case DocSymbol::Tm: m_t << "&trade;"; break;
@@ -304,7 +305,7 @@ void HtmlDocVisitor::visit(DocVerbatim *s)
if (m_hide) return;
switch(s->type())
{
- case DocVerbatim::Code: // fall though
+ case DocVerbatim::Code:
forceEndParagraph(s);
m_t << PREFRAG_START;
Doxygen::parserManager->getParser(m_langExt)
diff --git a/src/index.cpp b/src/index.cpp
index 8031f56..a049a3f 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -42,6 +42,7 @@
#include "pagedef.h"
#include "dirdef.h"
#include "vhdldocgen.h"
+#include "layout.h"
#define MAX_ITEMS_BEFORE_MULTIPAGE_INDEX 200
#define MAX_ITEMS_BEFORE_QUICK_INDEX 30
@@ -1879,6 +1880,35 @@ void writeQuickMemberIndex(OutputList &ol,
//----------------------------------------------------------------------------
+struct CmhlInfo
+{
+ CmhlInfo(const char *fn,const char *t) : fname(fn), title(t) {}
+ const char *fname;
+ QCString title;
+};
+
+static const CmhlInfo *getCmhlInfo(int hl)
+{
+ static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
+ static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
+ static CmhlInfo cmhlInfo[] =
+ {
+ CmhlInfo("functions", theTranslator->trAll()),
+ CmhlInfo("functions_func",
+ fortranOpt ? theTranslator->trSubprograms() :
+ vhdlOpt ? VhdlDocGen::trFunctionAndProc() :
+ theTranslator->trFunctions()),
+ CmhlInfo("functions_vars",theTranslator->trVariables()),
+ CmhlInfo("functions_type",theTranslator->trTypedefs()),
+ CmhlInfo("functions_enum",theTranslator->trEnumerations()),
+ CmhlInfo("functions_eval",theTranslator->trEnumerationValues()),
+ CmhlInfo("functions_prop",theTranslator->trProperties()),
+ CmhlInfo("functions_evnt",theTranslator->trEvents()),
+ CmhlInfo("functions_rela",theTranslator->trRelatedFunctions())
+ };
+ return &cmhlInfo[hl];
+}
+
static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight hl)
{
if (documentedClassMembers[hl]==0) return;
@@ -1894,6 +1924,7 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
numPages=127;
}
+#if 0
struct CmhlInfo
{
CmhlInfo(const char *fn,const char *t) : fname(fn), title(t) {}
@@ -1914,6 +1945,7 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
CmhlInfo("functions_evnt",theTranslator->trEvents()),
CmhlInfo("functions_rela",theTranslator->trRelatedFunctions())
};
+#endif
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html);
@@ -1922,7 +1954,7 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
QCString title = fortranOpt ? theTranslator->trCompoundMembersFortran() :
vhdlOpt ? VhdlDocGen::trDesignUnitMembers() :
theTranslator->trCompoundMembers() ;
- if (hl!=CMHL_All) title+=(QCString)" - "+cmhlInfo[hl].title;
+ if (hl!=CMHL_All) title+=(QCString)" - "+getCmhlInfo(hl)->title;
int page;
bool first=TRUE;
@@ -1930,7 +1962,7 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
{
if (!multiPageIndex || g_memberIndexLetterUsed[hl][page].count()>0)
{
- QCString fileName = cmhlInfo[hl].fname;
+ QCString fileName = getCmhlInfo(hl)->fname;
if (multiPageIndex && !first)
{
fileName+=QCString().sprintf("_0x%02x",page);
@@ -1942,8 +1974,8 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
// index item for global member list
startQuickIndexItem(ol,
- cmhlInfo[0].fname+Doxygen::htmlFileExtension,hl==CMHL_All,TRUE,first);
- ol.writeString(fixSpaces(cmhlInfo[0].title));
+ getCmhlInfo(0)->fname+Doxygen::htmlFileExtension,hl==CMHL_All,TRUE,first);
+ ol.writeString(fixSpaces(getCmhlInfo(0)->title));
endQuickIndexItem(ol);
// index items per category member lists
@@ -1952,10 +1984,10 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
{
if (documentedClassMembers[i]>0)
{
- startQuickIndexItem(ol,cmhlInfo[i].fname+Doxygen::htmlFileExtension,hl==i,TRUE,first);
- ol.writeString(fixSpaces(cmhlInfo[i].title));
+ startQuickIndexItem(ol,getCmhlInfo(i)->fname+Doxygen::htmlFileExtension,hl==i,TRUE,first);
+ ol.writeString(fixSpaces(getCmhlInfo(i)->title));
//printf("multiPageIndex=%d first=%d fileName=%s file=%s title=%s\n",
- // multiPageIndex,first,fileName.data(),cmhlInfo[i].fname,cmhlInfo[i].title.data());
+ // multiPageIndex,first,fileName.data(),getCmhlInfo(i)->fname,getCmhlInfo(i)->title.data());
endQuickIndexItem(ol);
}
}
@@ -1967,7 +1999,7 @@ static void writeClassMemberIndexFiltered(OutputList &ol, ClassMemberHighlight h
if (quickIndex)
{
writeQuickMemberIndex(ol,g_memberIndexLetterUsed[hl],page,
- cmhlInfo[hl].fname,multiPageIndex);
+ getCmhlInfo(hl)->fname,multiPageIndex);
}
ol.endQuickIndices();
@@ -2978,6 +3010,57 @@ void writeExampleIndex(OutputList &ol)
ol.popGeneratorState();
}
+
+//----------------------------------------------------------------------------
+
+void writeFullNavIndex(QTextStream &t, LayoutNavEntry *root,int indent)
+{
+ QCString indentStr;
+ indentStr.fill(' ',indent*2);
+ if (root->children().count()>0)
+ {
+ t << indentStr << "<ul>" << endl;
+ QListIterator<LayoutNavEntry> li(root->children());
+ LayoutNavEntry *entry;
+ for (li.toFirst();(entry=li.current());++li)
+ {
+ t << indentStr << "<li>";
+ t << "<a href=\"" << entry->baseFile() << Doxygen::htmlFileExtension << "\">";
+ t << fixSpaces(entry->title());
+ t << "</a>";
+ t << "</li>" << endl;
+ writeFullNavIndex(t,entry,indent+1);
+ if (entry->kind()==LayoutNavEntry::ClassMembers)
+ {
+ t << indentStr << " <ul>" << endl;
+ // index items per category member lists
+ int i;
+ for (i=0;i<CMHL_Total;i++)
+ {
+ if (documentedClassMembers[i]>0)
+ {
+ t << indentStr << " <li>";
+ t << "<a href=\"" << getCmhlInfo(i)->fname << Doxygen::htmlFileExtension << "\">";
+ t << fixSpaces(getCmhlInfo(i)->title);
+ t << "</a>";
+ t << "</li>" << endl;
+ }
+ }
+ t << indentStr << " </ul>" << endl;
+ }
+ else if (entry->kind()==LayoutNavEntry::NamespaceMembers)
+ {
+ t << indentStr << " <namespacemembers>" << endl;
+ }
+ else if (entry->kind()==LayoutNavEntry::FileGlobals)
+ {
+ t << indentStr << " <fileglobals>" << endl;
+ }
+ }
+ t << indentStr << "</ul>" << endl;
+ }
+}
+
//----------------------------------------------------------------------------
void countRelatedPages(int &docPages,int &indexPages)
@@ -3619,6 +3702,18 @@ void writeIndex(OutputList &ol)
projPrefix=Config_getString("PROJECT_NAME")+" ";
}
+#if 0
+ {
+ QFile f("navindex.html");
+ if (f.open(IO_WriteOnly))
+ {
+ QTextStream t(&f);
+ LayoutNavEntry *layout = LayoutDocManager::instance().rootNavEntry();
+ writeFullNavIndex(t,layout,0);
+ }
+ }
+#endif
+
//--------------------------------------------------------------------
// write HTML index
//--------------------------------------------------------------------
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 46b9299..3c2e6f6 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -148,6 +148,7 @@ void LatexDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "\\&"; break;
case DocSymbol::Dollar: m_t << "\\$"; break;
case DocSymbol::Hash: m_t << "\\#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "\\%"; break;
case DocSymbol::Copy: m_t << "\\copyright"; break;
case DocSymbol::Tm: m_t << "\\texttrademark"; break;
diff --git a/src/mandocvisitor.cpp b/src/mandocvisitor.cpp
index d1ec0d3..5dd9f5e 100644
--- a/src/mandocvisitor.cpp
+++ b/src/mandocvisitor.cpp
@@ -82,6 +82,7 @@ void ManDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "&"; break;
case DocSymbol::Dollar: m_t << "$"; break;
case DocSymbol::Hash: m_t << "#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "%"; break;
case DocSymbol::Copy: m_t << "(C)"; break;
case DocSymbol::Tm: m_t << "(TM)"; break;
diff --git a/src/membergroup.cpp b/src/membergroup.cpp
index d44a481..3e0f4e0 100644
--- a/src/membergroup.cpp
+++ b/src/membergroup.cpp
@@ -107,7 +107,7 @@ void MemberGroup::setAnchors(ClassDef *context)
void MemberGroup::writeDeclarations(OutputList &ol,
ClassDef *cd,NamespaceDef *nd,FileDef *fd,GroupDef *gd)
{
- //printf("MemberGroup::writeDeclarations() memberList->count()=%d\n",memberList->count());
+ printf("MemberGroup::writeDeclarations() %s\n",grpHeader.data());
QCString ldoc = doc;
if (!ldoc.isEmpty()) ldoc.prepend("<a name=\""+anchor()+"\"></a>");
memberList->writeDeclarations(ol,cd,nd,fd,gd,grpHeader,ldoc/*,TRUE,TRUE*/);
diff --git a/src/membergroup.h b/src/membergroup.h
index cedad1e..496a95d 100644
--- a/src/membergroup.h
+++ b/src/membergroup.h
@@ -115,6 +115,10 @@ class MemberGroupSDict : public SIntDict<MemberGroup>
public:
MemberGroupSDict(int size=17) : SIntDict<MemberGroup>(size) {}
~MemberGroupSDict() {}
+ int compareItems(GCI item1,GCI item2)
+ {
+ return ((MemberGroup *)item1)->groupId() - ((MemberGroup*)item2)->groupId();
+ }
};
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 98b4831..337403d 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -348,6 +348,7 @@ void NamespaceDef::writeMemberGroups(OutputList &ol)
/* write user defined member groups */
if (memberGroupSDict)
{
+ memberGroupSDict->sort();
MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp
index 2b57f6c..a274ba9 100644
--- a/src/perlmodgen.cpp
+++ b/src/perlmodgen.cpp
@@ -532,6 +532,7 @@ void PerlModDocVisitor::visit(DocSymbol *sy)
case DocSymbol::Amp: c = '&'; break;
case DocSymbol::Dollar: c = '$'; break;
case DocSymbol::Hash: c = '#'; break;
+ case DocSymbol::DoubleColon: s = "::"; break;
case DocSymbol::Percent: c = '%'; break;
case DocSymbol::Quot: c = '"'; break;
case DocSymbol::Lsquo: s = "\\\'"; break;
diff --git a/src/pre.l b/src/pre.l
index 7bb5c1d..0c9adee 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1300,10 +1300,10 @@ static void readIncludeFile(const QCString &inc)
QCString absPath = incFileName;
if (QDir::isRelativePath(incFileName))
{
- QString absPath = QDir::cleanDirPath(oldFileDef->getPath()+"/"+incFileName);
+ absPath = QDir::cleanDirPath(oldFileDef->getPath()+"/"+incFileName);
//printf("%s + %s -> resolved path %s\n",oldFileDef->getPath().data(),incFileName.data(),absPath.data());
}
- FileDef *fd = findFileDef(Doxygen::inputNameDict,incFileName,ambig);
+ FileDef *fd = findFileDef(Doxygen::inputNameDict,absPath,ambig);
//printf("%s::findFileDef(%s)=%p\n",oldFileDef->name().data(),incFileName.data(),fd);
// add include dependency to the file in which the #include was found
oldFileDef->addIncludeDependency(fd,incFileName,localInclude,g_isImported);
@@ -2130,8 +2130,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
}
<SkipCComment,SkipCPPComment>[\\@]"cond"[ \t\r]*\n |
<CondLine>. {
- outputArray(yytext,yyleng);
- g_yyLineNr+=QCString(yytext).contains('\n');
+ unput(*yytext);
startCondSection(" ");
if (YY_START==CondLine) BEGIN(g_condCtx);
}
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 4886b8d..c0a4019 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -110,6 +110,7 @@ void RTFDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "&"; break;
case DocSymbol::Dollar: m_t << "$"; break;
case DocSymbol::Hash: m_t << "#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "%"; break;
case DocSymbol::Copy: m_t << "(C)"; break;
case DocSymbol::Tm: m_t << "(TM)"; break;
diff --git a/src/scanner.l b/src/scanner.l
index be8f716..2fdf0f2 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -2099,7 +2099,12 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
yyLineNr = atoi(&yytext[1]);
//printf("setting line number to %d\n",yyLineNr);
lastPreLineCtrlContext = YY_START;
- current->program+=yytext;
+ if (YY_START==ReadBody ||
+ YY_START==ReadNSBody ||
+ YY_START==ReadBodyIntf)
+ {
+ current->program+=yytext;
+ }
BEGIN( PreLineCtrl );
}
<PreLineCtrl>"\""[^\n\"]*"\"" {
@@ -5553,6 +5558,15 @@ static void handleCommentBlock(const QCString &doc,bool brief)
if (docBlockInBody && hideInBodyDocs) return;
//printf("parseCommentBlock [%s] brief=%d\n",doc.data(),brief);
int lineNr = brief ? current->briefLine : current->docLine; // line of block start
+
+ // fill in inbodyFile && inbodyLine the first time, see bug 633891
+ Entry *docEntry = docBlockInBody && previous ? previous : current;
+ if (docBlockInBody && docEntry && docEntry->inbodyLine==-1)
+ {
+ docEntry->inbodyFile = yyFileName;
+ docEntry->inbodyLine = lineNr;
+ }
+
while (parseCommentBlock(
g_thisParser,
docBlockInBody && previous ? previous : current,
diff --git a/src/textdocvisitor.cpp b/src/textdocvisitor.cpp
index a39e16a..bddd436 100644
--- a/src/textdocvisitor.cpp
+++ b/src/textdocvisitor.cpp
@@ -33,6 +33,7 @@ void TextDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "&amp;"; break;
case DocSymbol::Dollar: m_t << "$"; break;
case DocSymbol::Hash: m_t << "#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "%"; break;
case DocSymbol::Copy: m_t << "&copy;"; break;
case DocSymbol::Tm: m_t << "&tm;"; break;
diff --git a/src/util.cpp b/src/util.cpp
index c9967ae..e22df70 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1959,7 +1959,7 @@ void writeExample(OutputList &ol,ExampleSDict *ed)
}
-QCString argListToString(ArgumentList *al,bool useCanonicalType)
+QCString argListToString(ArgumentList *al,bool useCanonicalType,bool showDefVals)
{
QCString result;
if (al==0) return result;
@@ -1988,7 +1988,7 @@ QCString argListToString(ArgumentList *al,bool useCanonicalType)
{
result+= type1+type2;
}
- if (!a->defval.isEmpty())
+ if (!a->defval.isEmpty() && showDefVals)
{
result+="="+a->defval;
}
@@ -2089,24 +2089,9 @@ int filterCRLF(char *buf,int len)
return dest; // length of the valid part of the buf
}
-
-/*! looks for a filter for the file \a name. Returns the name of the filter
- * if there is a match for the file name, otherwise an empty string.
- */
-QCString getFileFilter(const char* name)
+static QCString getFilterFromList(const char *name,const QStrList &filterList,bool &found)
{
- // sanity check
- if (name==0) return "";
-
- // first look for filter pattern list
- QStrList& filterList = Config_getList("FILTER_PATTERNS");
-
- if (filterList.isEmpty())
- {
- // use INPUT_FILTER instead (For all files)
- return Config_getString("INPUT_FILTER");
- }
-
+ found=FALSE;
// compare the file name to the filter pattern list
QStrListIterator sli(filterList);
char* filterStr;
@@ -2127,6 +2112,7 @@ QCString getFileFilter(const char* name)
{ // add quotes if the name has spaces
filterName="\""+filterName+"\"";
}
+ found=TRUE;
return filterName;
}
}
@@ -2136,6 +2122,39 @@ QCString getFileFilter(const char* name)
return "";
}
+/*! looks for a filter for the file \a name. Returns the name of the filter
+ * if there is a match for the file name, otherwise an empty string.
+ * In case \a inSourceCode is TRUE then first the source filter list is
+ * considered.
+ */
+QCString getFileFilter(const char* name,bool isSourceCode)
+{
+ // sanity check
+ if (name==0) return "";
+
+ QStrList& filterSrcList = Config_getList("FILTER_SOURCE_PATTERNS");
+ QStrList& filterList = Config_getList("FILTER_PATTERNS");
+
+ QCString filterName;
+ bool found=FALSE;
+ if (isSourceCode && !filterSrcList.isEmpty())
+ { // first look for source filter pattern list
+ filterName = getFilterFromList(name,filterSrcList,found);
+ }
+ if (!found && !filterName.isEmpty())
+ { // then look for filter pattern list
+ filterName = getFilterFromList(name,filterList,found);
+ }
+ if (!found)
+ { // then use the generic input filter
+ return Config_getString("INPUT_FILTER");
+ }
+ else
+ {
+ return filterName;
+ }
+}
+
#if 0
QCString recodeString(const QCString &str,const char *fromEncoding,const char *toEncoding)
{
@@ -2220,7 +2239,7 @@ QCString transcodeCharacterStringToUTF8(const QCString &input)
* is TRUE the file will be filtered by any user specified input filter.
* If \a name is "-" the string will be read from standard input.
*/
-QCString fileToString(const char *name,bool filter)
+QCString fileToString(const char *name,bool filter,bool isSourceCode)
{
if (name==0 || name[0]==0) return 0;
QFile f;
@@ -2255,7 +2274,7 @@ QCString fileToString(const char *name,bool filter)
err("error: file `%s' not found\n",name);
return "";
}
- QCString filterName = getFileFilter(name);
+ QCString filterName = getFileFilter(name,isSourceCode);
if (filterName.isEmpty() || !filter)
{
f.setName(name);
@@ -2870,13 +2889,13 @@ static bool matchArgument(const Argument *srcA,const Argument *dstA,
(srcAType+" "+srcAName)==dstAType)
{
MATCH
- return TRUE;
+ return TRUE;
}
else if (!dstAName.isEmpty() && !srcA->type.isEmpty() &&
(dstAType+" "+dstAName)==srcAType)
{
MATCH
- return TRUE;
+ return TRUE;
}
@@ -2993,7 +3012,7 @@ static bool matchArgument(const Argument *srcA,const Argument *dstA,
}
}
MATCH
- return TRUE;
+ return TRUE;
}
@@ -3033,12 +3052,12 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
if (match)
{
MATCH
- return TRUE;
+ return TRUE;
}
else
{
NOMATCH
- return FALSE;
+ return FALSE;
}
}
@@ -3050,7 +3069,7 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
a->type = "void";
srcAl->append(a);
MATCH
- return TRUE;
+ return TRUE;
}
if ( dstAl->count()==0 && srcAl->count()==1 &&
srcAl->getFirst()->type=="void" )
@@ -3059,13 +3078,13 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
a->type = "void";
dstAl->append(a);
MATCH
- return TRUE;
+ return TRUE;
}
if (srcAl->count() != dstAl->count())
{
NOMATCH
- return FALSE; // different number of arguments -> no match
+ return FALSE; // different number of arguments -> no match
}
if (checkCV)
@@ -3073,12 +3092,12 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
if (srcAl->constSpecifier != dstAl->constSpecifier)
{
NOMATCH
- return FALSE; // one member is const, the other not -> no match
+ return FALSE; // one member is const, the other not -> no match
}
if (srcAl->volatileSpecifier != dstAl->volatileSpecifier)
{
NOMATCH
- return FALSE; // one member is volatile, the other not -> no match
+ return FALSE; // one member is volatile, the other not -> no match
}
}
@@ -3092,11 +3111,11 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
usingNamespaces,usingClasses))
{
NOMATCH
- return FALSE;
+ return FALSE;
}
}
MATCH
- return TRUE; // all arguments match
+ return TRUE; // all arguments match
}
#endif
@@ -3162,8 +3181,10 @@ QCString getCanonicalTemplateSpec(Definition *d,FileDef *fs,const QCString& spec
static QCString getCanonicalTypeForIdentifier(
Definition *d,FileDef *fs,const QCString &word,
- QCString *tSpec)
+ QCString *tSpec,int count=0)
{
+ if (count>10) return word; // oops recursion
+
QCString symName,scope,result,templSpec,tmpName;
//DefinitionList *defList=0;
if (tSpec && !tSpec->isEmpty()) templSpec = stripDeclKeywords(getCanonicalTemplateSpec(d,fs,*tSpec));
@@ -3266,7 +3287,15 @@ static QCString getCanonicalTypeForIdentifier(
else if (mType && mType->isTypedef()) // a typedef
{
//result = mType->qualifiedName(); // changed after 1.7.2
- result = mType->typeString();
+ //result = mType->typeString();
+ if (word!=mType->typeString())
+ {
+ result = getCanonicalTypeForIdentifier(d,fs,mType->typeString(),tSpec,count++);
+ }
+ else
+ {
+ result = mType->typeString();
+ }
}
else // fallback
{
@@ -6927,7 +6956,7 @@ bool readInputFile(const char *fileName,BufStr &inBuf)
QFileInfo fi(fileName);
if (!fi.exists()) return FALSE;
- QCString filterName = getFileFilter(fileName);
+ QCString filterName = getFileFilter(fileName,FALSE);
if (filterName.isEmpty())
{
QFile f(fileName);
diff --git a/src/util.h b/src/util.h
index 8ca889c..ed3750a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -118,7 +118,7 @@ void linkifyText(const TextGeneratorIntf &ol,
void setAnchors(ClassDef *cd,char id,MemberList *ml,int groupId=-1);
-QCString fileToString(const char *name,bool filter=FALSE);
+QCString fileToString(const char *name,bool filter=FALSE,bool isSourceCode=FALSE);
QCString dateToString(bool);
@@ -135,7 +135,7 @@ bool getDefs(const QCString &scopeName,
bool checkCV=FALSE
);
-QCString getFileFilter(const char* name);
+QCString getFileFilter(const char* name,bool isSourceCode);
bool resolveRef(/* in */ const char *scName,
/* in */ const char *name,
@@ -207,7 +207,7 @@ inline bool isId(int c)
QCString removeRedundantWhiteSpace(const QCString &s);
-QCString argListToString(ArgumentList *al,bool useCanonicalType=FALSE);
+QCString argListToString(ArgumentList *al,bool useCanonicalType=FALSE,bool showDefVals=TRUE);
QCString tempArgListToString(ArgumentList *al);
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp
index 5dfa052..5ebc070 100644
--- a/src/xmldocvisitor.cpp
+++ b/src/xmldocvisitor.cpp
@@ -76,6 +76,7 @@ void XmlDocVisitor::visit(DocSymbol *s)
case DocSymbol::Amp: m_t << "&amp;"; break;
case DocSymbol::Dollar: m_t << "$"; break;
case DocSymbol::Hash: m_t << "#"; break;
+ case DocSymbol::DoubleColon: m_t << "::"; break;
case DocSymbol::Percent: m_t << "%"; break;
case DocSymbol::Copy: m_t << "<copy/>"; break;
case DocSymbol::Tm: m_t << "<trademark/>"; break;