![]() |
![]() |
1310 | ![]() |
||||
![]() | |||||||
| Identifiers | |||||||
A typedef is being defined with the same name as the tag of the struct, union or enum type which it represents. For example:
/*PRQA S 553,750,780,782,2211,2213,2216,3205,3602++*/
typedef union G { int x; long y; } G; /* Message 1310 */
typedef struct H { int x; long y; } H; /* Message 1310 */
typedef enum I { I1, I2, I3 } I; /* Message 1310 */
union J { int x; long y; };
typedef union J J; /* Message 1310 */
struct K { int x; long y; };
typedef struct K K; /* Message 1310 */
enum L {L1, L2, L3};
typedef enum L L; /* Message 1310 */
No MISRA C:2012 Rules applicable to message 1310
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |