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

    • Platform/s:
      Linux/X11
    • Commits:
      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

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              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