Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25828

New constraints syntax breaks Syntax Highlighting

    XMLWordPrintable

Details

    • All

    Description

      I have discovered now that I can write constraints in the following format: 

      /*! QString container concept (QStringList or QVector<QString>). */
      template<typename T>
      concept QStringContainer = std::same_as<T, QStringList> ||
                                 std::same_as<T, QVector<QString>>;
      
      struct BaseGrammar
      {
          /*! Wrap an array of values. */
          auto wrapArray(QStringContainer auto values) const;
      };
      
      auto BaseGrammar::wrapArray(QStringContainer auto values) const
      {
          for (auto &value : values)
              value = wrap(value);
      
          return values;
      }

      This new format breaks syntax highlighting inside the wrapArray function and it also breaks features like Find References to Symbol Under Cursor.

       

      Attachments

        1. method_body.jpg
          method_body.jpg
          105 kB
        2. testfile.hpp
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            silverq Silver Zachara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes