To suppress a Doxygen warning, you can use the special command @suppresswarning
followed by the warning number. This command can be added in the code comments where the warning occurs. Another option is to use the INPUT_FILTER
configuration option in the Doxygen configuration file to preprocess the source code and remove the specific warning-causing code before Doxygen parses it. Additionally, you can also turn off specific warnings by modifying the Doxygen configuration file, using the WARNINGS
tag to specify the warnings that should be suppressed.
How to turn off warnings about missing verbatim documentation in doxygen?
To turn off warnings about missing verbatim documentation in Doxygen, you can use the VERBATIM_HEADERS
option in the configuration file. Setting this option to NO
will disable warnings related to missing verbatim documentation.
You can find the VERBATIM_HEADERS
option in the Doxyfile
configuration file. Locate this option and change its value to NO
. Save the changes and regenerate the Doxygen documentation to see the warnings about missing verbatim documentation turned off.
Here is an example of how to set the VERBATIM_HEADERS
option in the Doxyfile
:
1 2 |
# Turn off warnings about missing verbatim documentation VERBATIM_HEADERS = NO |
After making this change in the configuration file, regenerate the Doxygen documentation to see the warnings disabled for missing verbatim documentation.
How to suppress doxygen warnings in specific code blocks?
To suppress doxygen warnings in specific code blocks, you can use the following syntax:
1 2 3 |
/// @cond suppress // Code block for which warnings should be suppressed /// @endcond |
This will tell doxygen to ignore any warnings or errors related to the code block enclosed between /// @cond suppress
and /// @endcond
.
Alternatively, you can also use the following commands to suppress warnings for specific lines:
1 2 3 |
/// @cond suppress // Code causing warning /// @endcond |
Make sure to place these commands directly above the code block or line that you want to suppress warnings for. Note that this method should be used sparingly and only when absolutely necessary, as suppressing warnings may lead to potential issues with the documentation generated by doxygen.
How to disable warnings about missing page documentation in doxygen?
To disable warnings about missing page documentation in Doxygen, you can set the WARN_IF_DOC_ERROR tag to NO in your Doxyfile configuration file. This will disable warnings for missing documentation in pages.
Here is an example of how to do this:
- Open your Doxyfile configuration file.
- Search for the WARN_IF_DOC_ERROR tag in the file.
- Change the value of WARN_IF_DOC_ERROR to NO.
- Save the changes to the file.
- Regenerate the Doxygen documentation to apply the changes.
By setting WARN_IF_DOC_ERROR to NO, you will disable warnings about missing page documentation in Doxygen.
How to suppress specific warnings in doxygen output?
To suppress specific warnings in Doxygen output, you can use the WARNINGS
tag in the Doxyfile configuration file.
- Open the Doxyfile configuration file in a text editor.
- Search for the WARNINGS tag in the file.
- Add the specific warning that you want to suppress in the WARNINGS tag. You can list multiple warnings separated by commas.
- Save the Doxyfile configuration file.
- Run Doxygen again to generate the output with the suppressed warnings.
For example, to suppress the warning "warning: documented argument 'param' of function xxx is not found in the argument list" you can add the following line to the WARNINGS
tag in the Doxyfile:
WARNINGS = HIDE_PARAMETER_DOC
This will suppress the specified warning from the Doxygen output.
How to disable warnings about missing typedef documentation in doxygen?
To disable warnings about missing typedef documentation in Doxygen, you can use the DISABLE_KEYWORD tag in your Doxygen configuration file. Here's how you can do it:
- Open your Doxygen configuration file (typically named Doxyfile).
- Search for the WARN_IF_DOC_ERROR tag in the configuration file.
- Change the value of the WARN_IF_DOC_ERROR tag to NO. This will disable warnings about missing typedef documentation.
- Save the configuration file and run Doxygen again to generate the documentation without the warnings about missing typedef documentation.
By setting WARN_IF_DOC_ERROR to NO, Doxygen will no longer produce warnings for missing typedef documentation in your code.
How to globally suppress all doxygen warnings?
To globally suppress all Doxygen warnings, you can modify the Doxygen configuration file (Doxyfile) to set the warning flag to "no".
Here is how you can do it:
- Open your Doxygen configuration file (Doxyfile) in a text editor.
- Search for the "WARNINGS" section in the configuration file.
- Set the value of the "WARNINGS" parameter to "NO" to suppress all warnings. It should look something like this: WARNINGS = NO
- Save the configuration file.
- Re-run Doxygen to generate your documentation without any warnings.
By setting the WARNINGS parameter to "NO" in the configuration file, you are effectively suppressing all warnings that Doxygen would normally generate during the documentation generation process.