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

No dot-to-arrow completion in function parameter list

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.13.0-beta2
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:

      Ubuntu Linux  18.04 x64 w/Unity

      QtCreator official 4.13-beta2 snapshot from online installer

    • Platform/s:
      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes