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

Missing function and arguments in command completion when typing definition manually

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 14.0.1
    • C/C++/Obj-C++ Support
    • AMD64 / FreeBSD (X11)
      AMD64 KDE neon Linux (Wayland)
      ARM64 / macOS

      KDE Plasma6 Qt Creator 14.0.1
    • Other

    Description

      // reproducable exmaple
      // SomeClass.h header file
      class SomeClass {
      
      private:
          void myfunction(int arg1, double arg2);
      public:
         void tryitagainfunction(int arg1, double arg2);
      }
      
      ======================
      
      // SomeClass.cpp 
      // Type the following line (the function definition) manually.. 
      // (NOT using menu option "Refactor->Add definition in SomeClass.cpp" )
      
      void SomeClass::myfu<xxx>  
      // type until <xxx> 
      // you will see that the function "myfunction(int, double)" does not appear as suggestion in the command completion popup menu. (this is due to the "private" keyword
      
      void SomeClass::tryit<xxx>
      // type until <xxx>
      // you will se that the function "tryitagainfunction(int, double) is listed in the popup menu of the command completion but if you select it (hit enter) then the function name is completed correctly but the function arguments are missing.
      
      
      

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            frx-wal Frederik van der Wal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes