MISRA Discussion Forums

Full Version: Rule 2.4 and tag used in typedef
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
};
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.
The above code is compliant with rule 2.4.