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

moc does not handle raw string literals correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15, 6.0
    • Build tools: moc
    • None

      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.

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

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change