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

Auto completion with clang model does not show virtual functions of base class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 13.0.0-beta2
    • C/C++/Obj-C++ Support
    • None
    • Windows 10
      Product: Qt Creator 13.0.0-beta2 (12.0.83)
      Based on: Qt 6.6.2 (MSVC 2019, x86_64)
      Built on: Feb 27 2024 13:27:07
      From revision: c536712707
    • Windows

    Description

      Auto completion with clang model does not show virtual functions of base class

      STEPS:

      • Open some widgets example in Qt Creator (say Chip demo)
      • Enable Clang model from Preferences -> C++ -> Clangd -> Use Clangd
      • Open chip.cpp, type "Chip::" in some empty line and press "Ctrl+Space" for autocompletion
      • Try to complete for function "Chip::mouse" 
      • Observe that the virtual functions are not shown in the auto completion list (namely mousePressEvent, mouseMoveEvent, mouseReleaseEvent)
      • Disable Clang model from Preferences -> C++ -> Clangd -> Use Clangd (uncheck)
      • Now try to complete for function "Chip::mouse" 

       

      OBSERVED:

      • The auto completion with clang model does not show virtual functions of base class 
      • The virtual functions of base class are shown with clang model turned off

      EXPECTED:

      • The virtual functions of base class should be shown with clang model too

       

      Attachment
      Auto completion with clang model does not show virtual functions of base class.mp4

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            aamershaikh23 Aamer Shaikh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes