Hello,
in our code we are using the following macro:
#define PROP_VARIABLE_DEFINE(NAME, TYPE, DEFAULT_VALUE) \ static TYPE m##NAME = DEFAULT_VALUE; \ static const TYPE m##NAME##DEF = DEFAULT_VALUE;
Cppcheck version 2.12.1 reports a MISRAC violation for the rule 20.7, but enclosing macro parameters inside parenthesis gives a compilation error.
Thank you for your support
thanks! I have created this ticket: https://trac.cppcheck.net/ticket/12337
Log in to post a comment.
Hello,
in our code we are using the following macro:
Cppcheck version 2.12.1 reports a MISRAC violation for the rule 20.7, but enclosing macro parameters inside parenthesis gives a compilation error.
Thank you for your support
thanks! I have created this ticket: https://trac.cppcheck.net/ticket/12337