AUTOSAR C++14 Rule A2-13-6
Universal character names shall be used only inside character or string literals
Since R2020a
Description
Rule Definition
Universal character names shall be used only inside character or string literals.
Rationale
Universal character names are a way to represent unicode characters by using code
points. For example, \U0000231A
represents the unicode character '⌚'.
When you use universal character names to define an identifier, it is difficult to read the
source code. Using universal character names as identifier is confusing and troublesome.
Avoid using universal character names outside a character or string literal.
Polyspace Implementation
Polyspace® flags the use of universal character names outside a character or string literal.
Troubleshooting
If you expect a rule violation but Polyspace does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Lexical conventions |
Category: Required, Automated |
Version History
Introduced in R2020a