Summary: This section describes the predefined Environment Profiles supplied with the extension and the custom Environment Profiles that can be created where required.

Environment Profiles can only be managed by the legacy CAST Management Studio (no interface available in AIP Console to do this).


Environment Profiles are a set of predefined (by CAST) or custom configuration settings that can be included in an analysis:

Predefined Environment Profiles

Predefined Environment Profiles are applied to analyses automatically by the extension, depending on the technology options you choose, whether at default level or at Application or Analysis Unit level. CAST provides several predefined Environment Profiles in the C/C++ extension tailor the analysis configuration settings to the specific IDE used to build the C/C++ application, in particular setting dedicated Include Paths and adding specific Macros:

Custom Environment Profiles

A custom Environment Profile can be particularly useful where you have several Analysis Units (for example a large project that has been split) that rely on the same specific settings. By creating a custom Environment Profile that defines these settings, you avoid having to configure each Analysis Unit with the same settings - instead you simply include the custom Environment Profile at  Application or Analysis Unit level using the Custom Environment Profile option. When the analysis is run, the settings in the Environment Profile are taken into account.

For the C/C++ Analyzer extension, it is possible to create Environment Profiles to set custom Include Paths and add in custom Macros required by your application.

Note that you can apply multiple custom C/C++ Environment Profiles to an analysis.

Managing custom Environment Profiles

If you want to create new custom Environment Profiles, you need to use the Environment Profile Manager. This can be accessed from the Analysis tab in the Application or Analysis Unit:

The Profile Manager will then launch:

Creating a custom profile

Select the C++ Environment Profile entry in the left hand panel, then click the  icon in the right hand panel:

A new screen will be displayed containing various tabs:

General tab

Macros tab

The Macros tab enables you to configure macros that will be used by the internal pre-processor when the associated job is run.

Enabling custom Environment Profiles

Use the following options in the Analysis tab at Application/Analysis Unit level to select a custom Environment Profile you have created (click to enlarge):