rspec/rules/S961/cfamily/rule.adoc

20 lines
626 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
This is a constraint error, but preprocessors have been known to ignore this problem. Each argument in a function-like macro must consist of at least one preprocessing token otherwise the behaviour is undefined.
== Resources
2021-04-28 16:49:39 +02:00
* MISRA C:2004, 19.8 - A function-like macro shall not be invoked without all of its arguments.
* https://cwe.mitre.org/data/definitions/628[MITRE, CWE-628] - Function Call with Incorrectly Specified Arguments
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]