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

Clang Code Model on Ubuntu 19.10 fails to use /usr/include & /usr/include/x86_64-linux-gnu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.10.0, Qt Creator 4.11.0
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 19.10 (Eoan Ermine), Qt Creator 4.11.0
    • Linux/X11

    Description

      The Clang Code Model in Qt Creator fails to find the "/usr/include" and "/usr/include/x86_64-linux-gnu" include paths with the GCC/G++ version currently in Ubuntu 19.10, as far as I can tell. (I assume it applies to the version as-shipped, but I haven't checked.)

      (Those includes for which Clang has a replacement (such as stdint.h) started working between Qt Creator 4.10.0 and Qt Creator 4.11.0.)

      In this situation, projects that attempt to include headers in these paths will find phantom errors appear from the Clang Code Model regarding missing include files.

      An example would be "#include <pthread.h>".

      (As such, an example project has not been included; take a library project template and add that into a header.)

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            20kdc M W
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes