Forbidden symbols

In the Forbidden symbols tab, you can specify the keywords, symbols and identifiers that must not be used in the project code. The forbidden symbols are checked during the static analysis if rule SA0181: Forbidden symbols is configured as an error or warning.

Forbidden symbols  1:

Configuration of forbidden symbols

You can enter the invalid symbols directly in the input field or choose them using the Input Assistant. If the rule SA0181: Forbidden symbols is enabled, the code is checked for the presence of these terms during static analysis. Depending on the configuration of SA0181, a fault or a warning is displayed in the fault list when a match is found.

Sample output

XOR is defined as an invalid symbol and is nevertheless used in the code. SA0181 is configured as an error. The following error is therefore displayed in the error list when the static analysis is performed:

"SA0181: Illegal symbol 'XOR'"