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

Clang code model breaks renaming refactoring in macros

    XMLWordPrintable

Details

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

    Description

      Clang code model breaks renaming refactoring in macros

      #define m1(x)  #x
      #define m2(x)  m1(x)
      
      void test() {
        QString s;
      
        QString ss(s);
        QString s1(m1(s));
        QString s2(m2(s));
      }
      

      while everything is good without clang code model plugin

      Probably this bug has relative cause with QTCREATORBUG-20662

      Attachments

        1. Screenshot_1.png
          Screenshot_1.png
          11 kB
        2. Screenshot_2.png
          Screenshot_2.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            progrev Prav Ogrev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes