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

No dot-to-arrow completion in function parameter list

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 7.0.2
    • Qt Creator 4.13.0-beta2
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu Linux  18.04 x64 w/Unity

      QtCreator official 4.13-beta2 snapshot from online installer

    • All

    Description

      Dot-to-arrow completion seems to depend on the context.

      It works nicely for assignments, but fails in the function parameter list.

      #include <QString>
      
      typedef struct Foo {
        int bar;
      } Foo;
      
      void baz(Foo *foo)
      {
        // typing "foo.bar" is correctly completed to foo->bar here
        foo->bar = 42;
      
        // and here too
        int i = foo->bar;
      
        // but typing "foo.bar" here is *not* corrected
        // afterwards, a fix it "did you mean to use '->'?" appears
        QString s = QString::number(foo.bar);
      }

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes