Conditional Parsing

Conditional parsing applies only to languages that support conditional compilation in Source Insight: C/C++ and Windows Resource files.

Source Insight maintains two types of condition variable lists.

Configuration file based condition list. This list is saved in the current configuration file, which contains your customizations. Normally, there is one global configuration file used for all of your projects.

Project-Specific condition list. This list is saved with each project. This allows you to have different condition variables defined for each individual project. For example, you could have “RETAIL” defined in one project, and “DEBUG” defined in another.

The two condition lists are combined when Source Insight parses a file. The project-specific conditions take precedence over the “global” configuration based conditions.

In this section: