Standard S32DS C/C++ Preprocessor

The Standard S32DS C/C++ Preprocessor page describes the build configuration settings that apply to the preprocessor tool.
Note: When you build a project, this tool is not called. Use it at any time as a standalone tool to preprocess the selected source files and to preview the output. Find the details in topic Preprocessing source files.
Table 1. Application Project and Library Properties: Standard S32DS C/C++ Preprocessor
Setting Description
Command The command pattern for the ${COMMAND} variable. This variable is used in the Command line pattern field (below). Default patterns:
  • C preprocessor: ${cross_prefix}${cross_c}${cross_suffix}
  • C++ preprocessor: ${cross_prefix}${cross_cpp}${cross_suffix}

The pattern uses the build variables specified on the Cross Settings page.

All options This read-only field shows all flags specified on the Settings page of the Standard S32DS C/C++ preprocessor tool settings. The preprocessor will be called with these flags.

Default flags: -E

Command line pattern The command line pattern to call the preprocessor tool.

Default: ${COMMAND} ${FLAGS} ${INPUTS}

Settings

The Settings page configures the general properties of the Standard S32DS C/C++ Preprocessor virtual tools. These tools perform preprocessing of the selected C or C++ source files without building the project.

Table 2. Application Project and Library Properties: Standard S32DS C/C++ Preprocessor > Settings
Setting Description
Handle Directives Only (fdirectives-only) Enables preprocessing of directives such as #define, #ifdef, and #error without expanding macros.
Note: The -E flag automatically enabled in the command line of the preprocessor limits preprocessing to handling only the compiler directives. Expansion of macros and conversion of trigraphs are not performed.
Print Header File Names (-H) Enables the preprocessor to scan include directories and output name of every header file included in your code. The output is redirected to the console.