10-02-2014, 02:09 PM
Your example does violate rule 2.4, providing typedef “A†is always used in the rest of the translation unit and never “enum Aâ€. A compliant typedef declaration could be written as This issue is similar to the example of record_t in the Example section for rule 2.4.
Code:
typedef enum {
b
} A;
Posted by and on behalf of the MISRA C Working Group