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

Clang Code Model is too slow for properly correcting member access operator

    XMLWordPrintable

Details

    Description

      1. Have a simple C++-file:
        #include <QString>
        
        int main(int argc, char *argv[])
        {
            auto str = new QString;
            st
        
            return 0;
        }
        
      2. Place the cursor behind "st".
      3. Type "r."
        "." is not being replaced with "->" unless you wait for more than a second after typing the "r".

      str is a pointer to an object, so the "." should be replaced with the "->" operator. The needed parsing must be quicker than the developer is typing.

      Found by Squish test tst_memberoperator.

      Attachments

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              rlohning Robert Löhning
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: