AutosarC++17_10-A2.14.2

String literals with different encoding prefixes shall not be concatenated

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

mixed_string_concatenation

Concatenation of mixed string encodings

None

False

narrow_wide_concat

Concatenation of narrow and wide string literal

None

False

Options

cpp11_mode

cpp11_mode : bool = True

Use rules as defined in the C++11 standard. If false, only L and unprefixed literals are reported. If true, prefixes of length two and unprefixed literals are conforming; but additionally, mixed_string_concatenation compiler messages are reported.
 

report_all_prefix_differences

report_all_prefix_differences : bool = False

Report all prefix difference (i.e. do not exclude those with and without cpp11_mode).