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

Qt Creator highlights lots of valid C++ as invalid

    XMLWordPrintable

Details

    Description

      Creator seems to highlight lots of valid c++ as invalid.

      Examples:

      creating function pointers:

      void foo() {
      AttemptResult (QMailStorePrivate::func)(QMailMessage, const QString&, const QStringList&, QMailMessageIdList*, QMailMessageIdList*, QMailFolderIdList*, QMailAccountIdList*, Transaction&, bool) = &QMailStorePrivate::attemptAddMessage;
      }

      ..and even normal pointers:
      void foo(sqlite3_stmt *statement)

      { const unsigned char *s(sqlite3_column_text(statement, 0)); }

      Namespace aliases...

      namespace pt = boost::posix_time;
      void foo(pt:ptime p); // but writing: "void foo(boost::posix_time::ptime p);" would be fine

      etc.

      Attachments

        1. main.cpp
          0.7 kB
          Eric Springer (closed Nokia identity)

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              erikv Erik Verbruggen
              espringe Eric Springer (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes