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

The auto completion in comments does not show methods of the class with clang model

    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

      The auto completion in comments does not show methods of the class

      PRE-REQUISITES:

      • Clang model is enabled from Preferences -> C++ -> Clangd -> Use Clangd

      STEPS:

      • Open some widgets example in Qt Creator (say Chip demo)
      • Open chip.cpp, type "Chip::" in some empty line and press "Ctrl+Space" for autocompletion
      • Observe that it will show functions such as shape(), boundingRect() and paint() in the autocompletion
      • Now put the text in comment and try auto completion. i.e., type "//Chip::" and press "Ctrl+Space" for autocompletion
      • Observe that it will NOT show functions such as shape(), boundingRect() and paint() in the autocompletion

       

      OBSERVED:

      • Observed that when using auto completion in comments, "//Chip::", it does not show the relevant functions
      • The public functions are seen in auto completions results if it not in comments

      EXPECTED:

      • The results for auto completion inside comments should be same as auto completion without comments

       

      Attachment:
      **

      Clang autocompletion in comment issue.mp4

      Attachments

        Issue Links

          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