Miscellaneous-NoUnsafeMacroΒΆ

Do not use macro definitions with parameters or expressions without parentheses around them

Required inputs: IR

Macros that involve operators must be fully parenthesized:
#define MUL(A, B) ((A) * (B))
Macros that lack parentheses may parse in unexpected ways when used in certain contexts.

Possible Messages

Key

Text

Severity

Disabled

unsafe_macro_body

Macro replacement text potentially must be parenthesized.

None

False

unsafe_macro_param

Macro argument(s) must be parenthesized.

None

False

Options