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

moc does not handle raw string literals correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0, 5.15
    • Build tools: moc
    • 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

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change