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

Definition added to qmake 'Additional arguments' not honoured by the code editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 2.0.0
    • Editors
    • None
    • Windows 7, Mac OSX
    • 9f68456b6513dbb31aad7211c48a85637b1c97cd

      We sometimes create new build configurations that have a #define set by specifying the following in the qmake 'Additional arguments' box:

      "DEFINES+=SOME_DEFINITION"

      However, when using one of these configurations code like the following will be treated as if SOME_DEFINITION is NOT set:

      #ifdef SOME_DEFINITION
      // Some code
      // This will be displayed as if SOME_DEFINITION isn't set
      #endif

      This also means that intellisense, etc. will not work in code blocks like this. The code compiles correctly - this seems to be an issue with the editor.

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

            dt Daniel Teske
            rec Rob Caldecott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes