Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87667

moc does not handle raw string literals correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15, 6.0
    • Fix Version/s: None
    • Component/s: Build tools: moc
    • Labels:
      None

      Description

      Run moc on

      #include <QObject>
      
      class Q : public QObject {
        Q_OBJECT
      public:
        Q() {}
        static constexpr auto s = uR"(")";
      };
      

      moc reports that it couldn't find any relevant classes, because it gets confused by the " inside the string literal.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-87667
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              fabiankosmale Fabian Kosmale
              Reporter:
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change