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

Auto-completion suggestions are not cleared inside a lambda argument

    XMLWordPrintable

Details

    • Linux/X11
    • 2087b4322 (master)

    Description

      When typing a function call where one of the arguments is a lambda function, QtCreator does not remove the auto-completion suggestion about the enclosing function parameters even when the cursor is within the lambda body.

      See the attached screencast where I'm typing `std::thread` with an inline lambda.

      The stale auto-completion suggestion is useless within the lambda body and interferes with code navigation as it intercepts arrow key presses. I think, it should be cleared even earlier, when the square bracket for the lambda capture is opened, as this creates a separate context for captures.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes