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

Regression: Defines not updated when build configuration is replaced

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.5.0-rc
    • Qt Creator 2.5.0-rc
    • C/C++/Obj-C++ Support
    • None
    • Windows XP SP3

    Description

      Consider the following code with vs and mingw configurations:

      #include <iostream>
      
      using namespace std;
      
      #ifdef __GNUC__
      #define FOO Foo
      #else
      #define FOO Bar
      #endif
      
      void Foo() { cout << "Foo!" << endl; }
      void Bar() { cout << "Bar!" << endl; }
      
      int main()
      {
          FOO();
          return 0;
      }

      When configuration is switched from mingw to vs and vice versa, FOO doesn't seem to be updated (even highlighting doesn't change).

      Reloading the project resolves this.

      My project is more complex, and it displays Parsing progress when switching configurations, and even highlights #ifdef's correctly (in most locations), but Follow Symbol jumps to the old definition until I reload the project.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes