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

        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