How to Change the Namespace Delimiter In Doxygen?

4 minutes read

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.

Top Cloud Hosting Providers of November 2024

1
DigitalOcean

Rating is 5 out of 5

DigitalOcean

2
AWS

Rating is 5 out of 5

AWS

3
Vultr

Rating is 4.9 out of 5

Vultr

4
Cloudways

Rating is 4.9 out of 5

Cloudways


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.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

To change the doxygen configuration file, you can open the existing configuration file (usually named Doxyfile) in a text editor such as Notepad or Visual Studio Code. Within this file, you can modify various settings such as the project name, input files, out...
In Vite, in order to use namespaces, you can simply define the namespace in the component options object like this: export default { namespace: 'myNamespace', data() { return { // Data properties }; }, // Other component options }...
To set a favicon for Doxygen output, you need to include a link to the favicon in the HTML header of the Doxygen output files. First, create or obtain the favicon file in .ico format. Next, place the favicon file in the directory where the Doxygen output files...