10-07-2026, 03:10 PM
We agree that the wording of this rule is unclear.
However, your forum post example doesn't contain any function declared 'static', so the rule does not apply.
More generally, it was felt this rule was too restrictive and so was not included in the ruleset for MISRA C++:2023
However, your forum post example doesn't contain any function declared 'static', so the rule does not apply.
More generally, it was felt this rule was too restrictive and so was not included in the ruleset for MISRA C++:2023
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group

