Miscellaneous-DoxygenCommentInHeader¶
Place Doxygen comments above classes and functions in header files
Required inputs: IR
See Also
Rule Miscellaneous-DoxygenCommentAtDefinition is a similar rule that expects the Doxygen comments above the definitions instead of the declarations.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
missing_doxygen_comment_before_def |
No Doxygen comment before declaration. |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
add_extra_info¶
add_extra_info : bool = False
allow_inherited¶
allow_inherited : bool = False
allow_missing_documentation_on_private¶
allow_missing_documentation_on_private : bool = False
private.
allow_missing_documentation_on_protected¶
allow_missing_documentation_on_protected : bool = False
protected.
doxygen_start¶
doxygen_start : set[str] = {'/**', '///'}
doxygen_trailer¶
doxygen_trailer : set[str] = set()
{'///<'}, that indicate trailing Doxygen
comments.
If this set is not empty, also trailing comments are accepted and leading comments
must not look like trailing Doxygen comments.
ignore_defaulted¶
ignore_defaulted : bool = False
ignore_deleted¶
ignore_deleted : bool = False
ignore_out_of_template_method_definitions¶
ignore_out_of_template_method_definitions : bool = False
ignore_redefinitions¶
ignore_redefinitions : bool = False
ignore_tool_comments¶
ignore_tool_comments : bauhaus.analysis.config.SearchPattern | None = None
lines_after¶
lines_after : int = 2
lines_before¶
lines_before : int = 4
node_types¶
node_types : set[bauhaus.ir.PIR_Class_Name] = {'Composite_Type_Interface', 'Routine_Declaration', 'Routine_Definition'}
stop_tokens¶
stop_tokens : set[str] = {'#define', '#include', ';', '{', '}'}
#include as stop token, leading comments in a file have
been frequently mistaken as comments of the first definition. The former default
value did not include #include. Other sensible stop tokens may be
#pragma, #if, #idef, #ifndef and
#endif.