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

Using Clang code model produces incorrect same variable usage selection

    XMLWordPrintable

Details

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

    Description

      Using Clang code model produces incorrect same-variable-usage-selection 
       

      void test() {
        QString s;
      
        QString ss(s);
        QString s1(m1(s));
        QString s2(m2(s));
      }
      
      void test2() {
        QString s;
        QString s2(m2(s));
      }
      

      while everything is good without clang code model plugin

      Probable the inner cause of this bug is common with QTCREATORBUG-20662

      Attachments

        1. Screenshot_1.png
          Screenshot_1.png
          16 kB
        2. Screenshot_2.png
          Screenshot_2.png
          15 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