Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 2.4 and tag used in typedef
#1
Would the following examples be compliant with rule #2.4?
Code:
typedef struct cood cood_t;
struct cood {                    // here,  is the tag "cood" compliant?
    uint8_t  id;
};
<t></t>
Reply
#2
This appears to be nearly identical to my question in http://www.misra.org.uk/forum/viewtopic....216&t=1482, and the answer was yes.
<t></t>
Reply
#3
The above code is compliant with rule 2.4.
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)