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

When using limits.h in a source file it will see it as being the one provided with libclang instead of the one on the system

    XMLWordPrintable

Details

    • Linux/X11
    • 5165c037ebbc3948d777595610bc62beb275a9a8 (qt-creator/qt-creator/4.11)

    Description

      When using limits.h in a source file it will see it as being the one provided with libclang instead of the one on the system. This means if you right click it and go to Follow Symbol Under Cursor it will open the limits.h inside libclang and not the one in /usr/include.

      Additionally as a result, if you use the PTHREAD_STACK_MIN macro in the source code then it will indicate that it is not a valid identifier because the limits.h in libclang does not define it.

      Building the project works fine so it is just when interacting with it in Qt Creator.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-22898
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes