In Doxygen, the default delimiter for namespaces is ::
. However, you can change this delimiter by setting the NAMESPACE_DELIMITER
configuration option in the Doxyfile or using the -D
command-line option.
For example, if you want to change the delimiter to .
instead of ::
, you can add NAMESPACE_DELIMITER = .
to the Doxyfile or use the command-line option -DNAMESPACE_DELIMITER=.
.
This will affect how namespaces are displayed in the documentation generated by Doxygen.
What is the default behavior of the namespace delimiter in doxygen?
In Doxygen, the default behavior of the namespace delimiter is the double colon "::". This means that when documenting namespaces, you can refer to them using the double colon syntax. For example, if you have a namespace called "my_namespace", you would refer to it in Doxygen documentation as "my_namespace::some_class".
What is the syntax for specifying a new namespace delimiter in doxygen?
To specify a new namespace delimiter in Doxygen, you can use the following syntax:
\namespace_delimiter =
This command allows you to specify a new character that will be used as the namespace delimiter in the documentation generated by Doxygen. By default, Doxygen uses the double colon "::" as the namespace delimiter, but you can specify a different delimiter if needed using the above syntax.
How to specify a different namespace delimiter for specific namespaces in doxygen?
To specify a different namespace delimiter for specific namespaces in Doxygen, you can use the ALIASES configuration option in the Doxyfile. The ALIASES option allows you to define custom macros that will be replaced by Doxygen during parsing.
Here is an example of how to specify a different namespace delimiter for a specific namespace using the ALIASES option in a Doxyfile:
1
|
ALIASES += "MyNamespace=\MyNamespace"
|
In this example, the ALIASES option defines a custom macro "MyNamespace" that will be replaced with "\MyNamespace" when parsing the code. This allows you to specify a different namespace delimiter for the "MyNamespace" namespace.
You can define multiple custom macros and use them throughout your code to specify different namespace delimiters for specific namespaces. Remember to run Doxygen with the updated Doxyfile to apply the changes.