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

Regression: Defines not updated when build configuration is replaced

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTCREATORBUG-7198
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes