sqc 0.4.13

Software Code Quality - CERT C compliance checker
[metadata]
id = "PRE01-C"
type = "recommendation"
category = "PRE"
number = 1
title = "Use parentheses within macros around parameter names"
description = """
Parenthesize all parameter names in macro definitions. See alsoPRE00-C. Prefer
inline or static functions to function-like macrosandPRE02-C. Macro replacement
lists should be parenthesized. ThisCUBE()macro definition is noncompliant
because it fails to parenthesize the parameter names: #define CUBE(I) (I * I *
I)
"""
severity = "Medium"
likelihood = "Probable"
priority = "P12"
level = "L1"
cert_version = "2016 Edition (Wiki)"
last_modified = "May 19, 2025"

[rules.cert_c.PRE01-C]
enabled = true

[references]
wiki = "https://wiki.sei.cmu.edu/confluence/display/c/PRE01-C.+Use+parentheses+within+macros+around+parameter+names"