Miscellaneous-ForbiddenMacros

Do not use certain macros

Required inputs: IR

This rule prevents the use of a configurable set of macros.

Possible Messages

Key

Text

Severity

Disabled

forbidden_macro

Use of forbidden macro.

None

False

Options

blacklist

blacklist

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: '__*__'
}
Dictionary of header globbing to (list of) macro name globbing(s) of forbidden macros.