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

Provide diagnostic kind i.e. -Wmoc-no-enum-names (disable by default) #4

Open
nanoant opened this issue Jun 17, 2013 · 2 comments
Open

Comments

@nanoant
Copy link

nanoant commented Jun 17, 2013

Currently plugin emits lots of warnings coming from Qt 5.0.2 headers here. I guess this might be right behavior, but it makes is pretty useless for app developer, since problem is in Qt headers not in the app.

So please provide Clang diagnostic kind that is disabled by default and can be enabled via -Wmoc-no-enum-names.

I think this needs somehow to provide our own .td tblgen file.

@ogoffart
Copy link
Member

Those warnings have already been fixed in Qt 5.1.
If there are still some warning in official header, I think they should be fixed 'upstream'.

@nanoant
Copy link
Author

nanoant commented Jun 17, 2013

Thanks for the info, I'll check Qt 5.1 then. Anyway just to make it production ready, I think that moc-ng warning should go into their own category.

However I couldn't find any reasonable example how to achieve that easily in Clang plugin.

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

No branches or pull requests

2 participants