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

Make indexers aware of DEFINES specified in pro files

    XMLWordPrintable

Details

    Description

      We have the project with definitions in a pro-file

      TEMPLATE = app
      TARGET = myapp
      DEFINES = MY_DEBUG_MESSAGE

      And in a program body

      #ifdef MY_DEBUG_MESSAGE
      #define myDebug(msg, args...) qDebug(msg, ##args)
      #else
      #define myDebug(msg, args...) qt_noop()
      #endif

      int main()
      {
      ...
      myDebug("As Is");
      ......
      }

      Eclipse, will always highlight,
      #define myDebug(msg, args...) qt_noop()
      As the active code, and will compile as
      #define myDebug(msg, args...) qDebug(msg, ##args)

      The consequence of it is the fact that Q_XXX defines (which are defined in qt pro files) are not recognized

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes