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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes