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

    • Bug
    • Resolution: Fixed
    • P2: Important
    • Qt Creator 4.8.0-beta1
    • Qt Creator 4.8.0-beta1
    • C/C++/Obj-C++ Support
    • Windows 7 x64, Creator snapshot from Sep 13, rev bb6851632a
    • 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

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

          Activity

            People

              yvvan Ivan Donchevskii
              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