Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.7.0, 5.12.2
-
None
Description
If I run MOC on the following header file:
#pragma once #include <QObject> class MocBugTest : public QObject { Q_OBJECT public: MocBugTest() { const char* testMinimal = R"(a"//a )"; const char* testRealWorld = R"(<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" )"; } };
I get the message:
MocBugTest.h(0): Note: No relevant classes found. No output generated.
It seems that MOC gets confused by the string constant containing a ", a // and a line break.
I have added a minimal example and a real-world example. (I'd like the file to contain a hard-coded XSD.)
Attachments
Issue Links
- is duplicated by
-
QTBUG-55962 Moc parser does not support C++11 raw string literals
- Reported
- relates to
-
QTBUG-77421 Moc does not support C++14 digit separators
- Closed
-
QTBUG-77162 MOC is confused by raw string literal and namespace
- Closed