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

Defines from build.config are not passed to code model used in refactoring

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 3.5.1
    • C/C++/Obj-C++ Support
    • None

    Description

      AFAIK It's only related to external build system projects. Let's say I have something like :

      #ifdef FOO
      int bar = 2;
      #endif
      

      And in build.config I have :

      #define FOO
      

      What's happening - code highlighting works as indented (you can see code highlighter reads build.config and understand that block is defined), but I cannot use refactoring tools between #ifdef - #endif. If I remove #ifdef / #endif refactoring tools are working again.

      Attachments

        1. ifdef.png
          ifdef.png
          7 kB
        2. no-ifdef.png
          no-ifdef.png
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            jimon Dmitry Ivanov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes