OpenAPITools / OpenAPITools/openapi-generator

Qt Generator: Deprecated symbols

Open
#19,656 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

On a project that is natively build on many platforms we ran into an issue with mingw and the Moc-generator where the pattern

Q_SIGNALS

Q_DECL_DEPRECATED_X("dont use me!")
fooE(...);
fooError(...);

Q_DECL_DEPRECATED_X("dont use me!"
barE(...);
barError(...);

is dropping an 'Parse error on ";"' for the first fooE line.

I think its the Qts macros fault, I had to clean up the code by scripts which worked well. Could we have a config flag to even have the additional 2 lines for the legacy purpose, since it reduces also the runtime code as well?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported Q_SIGNALS and Q_DECL_DEPRECATED_X pattern in the Qt/Moc generator under mingw, then trace where the semicolon parse error is produced. Done means the pattern no longer fails parsing and the legacy two-line output can be controlled by a configuration flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.