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

After the clangCodeModel plugin is enabled, the automatic completion function of # include third-party libraries without the. h suffix is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 12.0.2
    • C/C++/Obj-C++ Support
    • Windows 11,x86
    • Windows

    Description

      After the clangCodeModel plugin is enabled, the automatic completion function of # include third-party libraries without the. h suffix is invalid

       

      I have introduced the header file directory of my OSG third-party library in the Pro file:

      INCLUDEPATH += C:/vcpkg/installed/x64-windows/include
      DEPENDPATH += C:/vcpkg/installed/x64-windows/include

       

      The following are the contents of the include folder and the include/osg folder:

       

      When I input # include<osg/Node>in the source code, under normal circumstances, there is a prompt to select the header file in the osg folder when I input # include<osg/, but in reality, it does not prompt.

       

      This issue was resolved when I closed the ClangCodeModel plugin.But I need the clandCodeModel plugin

       

       

      In addition, after testing, Qt Creator12.0.2 did not find the above issues after installing the clangCodeModel plugin on Linux systems.

      Attachments

        1. image-2024-02-22-16-01-49-602.png
          83 kB
          zhang zhiyong
        2. image-2024-02-22-16-01-39-149.png
          95 kB
          zhang zhiyong
        3. image-2024-02-22-15-55-01-294.png
          62 kB
          zhang zhiyong
        4. image-2024-02-22-15-54-26-750.png
          57 kB
          zhang zhiyong
        5. image-2024-02-22-15-53-10-716.png
          32 kB
          zhang zhiyong
        6. image-2024-02-22-15-52-41-954.png
          47 kB
          zhang zhiyong

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              horrzzz zhang zhiyong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes