Rely on AbstractCppCodegen's escapeReservedWord() implementation
- 'reservedWordPrefix' was exposed as a cli option and added to the
map of additionalProperties in AbstractCppCodegen but its value
was not used.
- Remove the Qt-specific override and rely on the parent class instead.
AbstractCppCodegen's implementation calls
`sanitizeName(reservedWordPrefix + name)`, which handles edge cases
like hyphens in `reservedWordPrefix` by converting them to underscores
via DefaultCodegen, producing valid C++ identifiers in all cases.
- Remove expected failures in
tst_GeneratorAdditionalProperties::reservedWordPrefix().
- Update the test to use `reservedWordPrefix=reserved-` to verify that
the hyphen is correctly sanitized to an underscore.
Fixes: QTBUG-145028
Pick-to: 6.11
Change-Id: Ie8da21454c3bd195efe33e5a77e7c732b053e00d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>