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

Refactoring incorrectly replaces macro arguments

    XMLWordPrintable

Details

    • 7dc2c6b3b3 (qt-creator/qt-creator/9.0) 7dc2c6b3b3 (qt-creator/qt-creator/master)

    Description

      Example:

       

      struct Foo {
          int _x;
          int _Y;
      
      #define FOO_XLIST(F) F(x) F(Y)
      
      #define FOO_GETTER(field) int field() const { return _##field; }
      FOO_XLIST(FOO_GETTER)
      #undef FOO_GETTER
      };

      Refactoring _Y to _y also replaces FOO_XLIST(FOO_GETTER) with FOO_XLIST(_y), which is unwanted.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            namniav vainman H
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes