Miscellaneous-ForbiddenMacros¶
Do not use certain macros
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
forbidden_macro |
Use of forbidden macro. |
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
blacklist¶
blacklist
Dictionary of header globbing to (list of) macro name globbing(s) of forbidden macros.Type: dict[bauhaus.analysis.config.FileGlobPattern | None, None | typing.Callable[[bauhaus.ir.Node], bool] | bauhaus.analysis.config.GlobPattern | set[None | typing.Callable[[bauhaus.ir.Node], bool] | bauhaus.analysis.config.GlobPattern]]
Default:
{ '*': <function bauhaus.rules.axivion.preprocessor.macros.forbidden_macro.<lambda>(macro)>, '.axivion.preinc': '*', None: '__*__' }