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

[Reg 4.7 -> 4.8] No dot-to-arrow-completion for pointer to c struct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: Qt Creator 4.8.0-beta1
    • Fix Version/s: Qt Creator 4.8.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
    • Environment:
      Windows 7 x64, Creator snapshot from Sep 13, rev bb6851632a
    • Platform/s:
      Windows

      Description

      // main.c
      
      typedef struct {
          int bar;
      } Foo;
      
      int main()
      {
          Foo foo;
          Foo *p = &foo;	
          p. // no dot-to-arraw-conversion, 
             // no completions offered	
          return 0;
      } 

      Steps to reproduce:

      • Press "p."

      Expected behavior:

      • Dot is converted to arrow: "p->"
      • Completions are offered: "p->bar"

      Note that this is working nicely in 4.7

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              yvvan Ivan Donchevskii
              Reporter:
              aha_1980 André Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes