Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a -keep-ununsed-types argument to kdwsdl2cpp #107

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

Knarf64
Copy link
Contributor

@Knarf64 Knarf64 commented Jul 19, 2017

This is a follow-up to your comment from #106 :

"What might be a problem though, with this approach, is the code that strips out any data structures that aren't used by the WSDL. See Converter::cleanupUnusedTypes. If you add a command-line option for kdwsdl2cpp to keep unused types (by skipping the call to cleanupUnusedTypes when that new option --keep-unused-types is set), I can merge that in."

@Knarf64
Copy link
Contributor Author

Knarf64 commented Jul 20, 2017

updated with unit tests

Copy link
Member

@dfaure-kdab dfaure-kdab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, apart from the useless QCOMPARE and the typo in the commit log (ununsed -> unused).

// otherwise cleanupUnusedTypes function would have removed it from the cpp generation
TNS__UnusedElement element;
Q_UNUSED(element);
QCOMPARE(42,42);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't say that I find this line particularly useful ;-)

@Knarf64 Knarf64 force-pushed the master branch 2 times, most recently from 7cf89f3 to 047d4f5 Compare September 11, 2017 09:46
@Knarf64
Copy link
Contributor Author

Knarf64 commented Sep 11, 2017

updated.

@dfaure-kdab dfaure-kdab merged commit 08e7e55 into KDAB:master Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants