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

Identifiers called 'slots' causes wrong code parsing for non-QT files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4: Low
    • None
    • Qt Creator 2.7.1, Qt Creator 3.0.0-rc1
    • C/C++/Obj-C++ Support
    • None

    Description

      To reproduce, paste this perfectly valid code into a C++ file that doesn't use any QT includes:

      struct Hello
      {
          int slots;
      };
      

      QT Creator will underline this in a red color, because it thinks that "slots" is supposed to be QT MOC code, but it's not. The code doesn't include QT anywhere.

      QT Creator is a great IDE even for people who don't use QT, so this should be fixed.

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              scrawl Jannik Heller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes