Miscellaneous-NoFunctionCommentInImpl¶
Do not place comments above functions and methods in implementation files
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
comment_in_funcimpl |
Use of function/method comment in implementation file. |
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
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.