Skip to main content

IAR Embedded Workbench for RL78 5.20

‑‑exclude

In this section:
Syntax
--exclude {filename|directory}
Parameters

filename 

The name of the source file to exclude. See also Rules for specifying a filename or directory as parameters.

directory 

The name of the directory where the source files to exclude are stored. See also Rules for specifying a filename or directory as parameters.

Note that the string you specify can include the * and ? characters, where * matches any sequence of characters (including the empty sequence) and ? matches any single character.

For use with

icstat

Description

Use this option to exclude one or more source files (not, for example, header files) from the source file analysis (the command analyze); more specifically, files whose part of their absolute path completely matches the string you specify. The --exclude option cannot exclude files from the application linking analysis (the command link_analyze). For more information on the analysis commands, see The icstat tool.

Example
--exclude library

Will for example, exclude E:\project\library\libxml.c, but will not exclude E:\project\third_party_library\libxml.c or E:\project\library.c.

--exclude libxml*

Will for example, exclude E:\project\library\libxml-2.7.6.c\main.c and E:\project\libxml.c, but will not exclude E:\project\api_libxml.c.

--exclude library\libxml

Will for example, exclude E:\project\library\libxml\main.c, but will not exclude E:\project\libxml-2.7.6.c\main.c.

Caution

To set this option in the IDE, use Project>Options>Static Analysis>Extra Options