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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes