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

[REG 3.6 -> 3.7] Clang: Broken completion

XMLWordPrintable

      1. Start Creator with enabled ClangCodeModel plugin but otherwise default settings.
      2. In a source file type:
        #include <vec
        
      3. Press Ctrl+Space to trigger code completion.
        The line will be completed halfway to:
        #include <vector
        

        Additionally, a popup offers "vector".

      4. Press Enter.
        The line will be completed to:
        #include <vector>
        

      When there's only one possible completion it does not make sense to add all characters except for the last. Either add the whole line or do nothing until the user presses Enter.

      In Creator 3.6 this worked correctly.

      Found by Squish test tst_CSUP06.

        For Gerrit Dashboard: QTCREATORBUG-15710
        # Subject Branch Project Status CR V

            yvvan Ivan Donchevskii
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes