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>
commit5ff808cbd101965f526c29661f29d12ffcd0a47d
parentaa5cfac495431e2abaa4dea6a82d802cf449318c
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeThu, 9 Apr 2026 10:43:20 +0200