Configuration | Naming conventions As the option "Recursive prefixes for combinable data types" is enabled, the prefix composed of the individual prefixes is expected as the data type prefix . Consequently, the sub-prefixes "p" for POINTER, "a" for ARRAY and "n" for INT are combined to form the data type prefix "pan", or the sub- prefixes "a" for ARRAY, "a" for ARRAY again and "b" for BOOL are combined to form the data type prefix "aab". As the option "Combine scope prefix with data type prefix" is also enabled, the combination of scope prefix and data type prefix is expected as the overall prefix . ◦Case 1: _local_ + pan = _local_pan ◦Case 2: + pan = pan Option scenario 2: Explanation:
As the option "Recursive prefixes for combinable data types" is disabled, only the prefix of the outermost data type is expected as the data type prefix . The expected data type prefix is therefore "p" or "a". As the option "Combine scope prefix with data type prefix" is enabled, the combination of scope prefix and data type prefix is expected as the overall prefix for variables. ◦Case 1: _local_ + p = _local_p ◦Case 2: + p = p Option scenario 3: Explanation: See option scenario 1: As the option "Recursive prefixes for combinable data types" is enabled, the prefix composed of the individual prefixes is expected as the data type prefix . This results in "pan" or "aab" as the data type prefix.
As the option "Combine scope prefix with data type prefix" is disabled, the expected overall prefix depends on whether or not a scope prefix is defined for a variable. ◦If scope prefix is defined (case 1): The variable must only have the scope prefix . The data type prefix is not expected after the scope prefix. This results for both variables in "_local_" as the expected overall prefix. ◦If scope prefix is not defined (case 2): The variable must only have the data type prefix. This results in "pan" or "aab" as the expected overall prefix. Option scenario 4: TE1200 91 Version:
2.11.1 Option State Expected overall prefix for case 1 (NC0054 = " local ") _ _ Expected overall prefix for case 2 (NC0054 = empty) Recursive prefixes for combinable data types Disabled For var1: ' local p' _ _ For var2: ' local a' _ _ For var1: 'p' For var2: 'a' Combine scope prefix with data type prefix Enabled Option State Expected overall prefix for case 1 (NC0054 = " local ") _ _ Expected overall prefix for case 2 (NC0054 = empty) Recursive prefixes for combinable data types Enabled For var1: ' local ' _ _ For var2: ' local ' _ _ For var1: 'pan' For var2: 'aab' Combine scope prefix with data type prefix Disabled