Escape {{prefix}}BaseApi method names used as operationIds


An operationId matching a {{prefix}}BaseApi public or protected methods
names (username, password, apiKey, execute, etc.) generates a slot that
silently hides the base-class method. The hidden method remains
uncallable, breaking API configuration (e.g. api.username() would invoke
the network operation instead of returning the configured username).

Add a separate apiReservedOperationNames set and override
toOperationId() in CppQt6ClientGenerator to escape these names.
Using a dedicated set rather than the shared reservedWords avoids
affecting model property names. The override lives in
CppQt6ClientGenerator rather than CppQt6AbstractCodegen because
QOAIBaseApi is client-specific.

Add an operation called 'username' as a test case to the reserved-words
spec. Extend the Java unit test and the C++ auto test to verify the
escaping.

Task-number: QTBUG-145028
Pick-to: 6.11
Change-Id: I1097b51dba3728f52b89581c7a137385ee21be6c
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit54c934a144ce2b249c8b0702baafc9d36eb8fb4c
parent03484d1fb4c40f8c7820931dbe90a1034a48d336
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeMon, 27 Apr 2026 06:21:44 +0000