Skip to main content

IAR Embedded Workbench for RH850 3.20.x

CERT-DCL37-C_c

In this section:
Synopsis

Do not declare or define a reserved identifier

Enabled by default

No

Severity/Certainty

Low/Low

lowlow.png
Full description

Do not declare or define a reserved identifier -- Noisy

Coding standards
CERT DCL37-C

Do not declare or define a reserved identifier

Code examples

The following code example fails the check and will give a warning:

#ifndef _MY_HEADER_H_
#define _MY_HEADER_H_

/* Contents of <my_header.h> */

#endif /* _MY_HEADER_H_ */

The following code example passes the check and will not give a warning about this issue:

#ifndef MY_HEADER_H
#define MY_HEADER_H

/* Contents of <my_header.h> */

#endif /* MY_HEADER_H */