Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
5.9.0
-
None
-
Should be reproducible on any platform
Description
The following header file (mocds.h) does not work with moc:
#include <QObject> class DSTest : public QObject { Q_OBJECT const int BAD_CONST = 0b1000'0000; const int GOOD_CONST = 0b10000000; }
Running moc on the file as-is:
$ moc mocds.h -o mocds.cpp
results in the dreaded
mocds.h:0: Note: No relevant classes found. No output generated.
If you comment out the BAD_CONST, it works fine.
Attachments
Issue Links
- relates to
-
QTBUG-62632 MOC creates no output if file contains raw string literal
- Closed