30-08-2018, 07:48 AM
First let me quote MISRA C 2012 chapter 6.1:
Also, it is classified advisory, so it would not require a formal deviation.
The answer to your question depends on whether other translation units in your project include def.h and use struct SomeType directly (creating a variable, accessing members etc.).
In that case, the opaque technique described in DIR 4.8 does not apply.
Quote:A directive is a guideline for which it is not possible to provide the full description necessary to perform a check for compliance
Also, it is classified advisory, so it would not require a formal deviation.
The answer to your question depends on whether other translation units in your project include def.h and use struct SomeType directly (creating a variable, accessing members etc.).
In that case, the opaque technique described in DIR 4.8 does not apply.
<t></t>