[previous] 1310 [next] '%s' is used as a tag and a typedef for the same 'struct' / 'union' / 'enum'.
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 */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents