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

QbsPM: Defines without values are not assigned 1

    XMLWordPrintable

Details

    • c4fb13a652dba9a2e30207a16a725e2a2c3f19f7

    Description

      Source:

      int main(int argc, char *argv[])
      {
      #if FOO
          return 0;
      #else
          return 1;
      #endif
      }

      Qbs project:

      import qbs
      
      CppApplication {
          cpp.defines: ["FOO"]
          files: ["main.cpp"]
      }

      Qmake project:

      SOURCES += main.cpp
      DEFINES += FOO

      FOO region is not highlighted using Qbs, but is highlighted correctly with Qmake.

      Find Usages on FOO finds it in <configuration>. For Qbs there is #define FOO while Qmake has #define FOO 1

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes