Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dir 4.8 if struct is only visible through a function declaration
#2
First let me quote MISRA C 2012 chapter 6.1:
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>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)