Open nbusser-sr opened 2 weeks ago
Possibly a duplicate of my own old ticket https://github.com/github/codeql-coding-standards/issues/612 :face_exhaling:
Sorry for the inconvenience
Thanks @nbusser-sr! I don't think this is a duplicate, although we will likely fix this at the same time.
Affected rules
A5-16-1
:cpp/autosar/ternary-conditional-operator-used-as-sub-expression
Description
When initializing a string inside a ternary expression,
A5-16-1
error is triggered.I tried with
std::uint32_t
and with aclass
, and the error was not triggered.Example