Skip to main content

IAR Embedded Workbench for RISC-V 3.40

INCLUDE-c-file

In this section:
Synopsis

A .c file includes one or more .c files.

Enabled by default

No

Severity/Certainty

Low/Low

lowlow.png
Full description

A C file includes one or more C files. C files shall not include other C files.

Coding standards

This check does not correspond to any coding standard rules.

Code examples

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

#include "header.c"
void example(void) {}

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

#include <stdlib.h>
void example(void) {}