Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
None
-
Qt Creator 15.0.0
-
None
-
f95d904d0 (master)
Description
Building Qt Creator in release mode prints many warnings such as:
AutoMoc: src/plugins/qtsupport/qtparser.cpp: note: No relevant classes found. No output generated.
These files have Q_OBJECT inside #ifdef WITH_TESTS, so I guess automoc detects it as moc candidate, and moc warns because it finds no classes.
Is it possible to improve automoc to consider conditionals? If this is too hard, maybe you could add a flag for moc that suppresses this warning?
Attachments
Issue Links
- relates to
-
QTBUG-107109 AUTOMOC warns about missing relevant classes after syncqt.cpp migration
-
- Closed
-