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

Wrong line displayed in results of "Find Usages"

    XMLWordPrintable

    Details

      Description

      1. Open the OpenGLWindow example from Qt's repository.
        It's in qtbase\examples\gui\openglwindow\openglwindow.pro
      2. Open main.cpp.
      3. Go to the line:
        glVertexAttribPointer(m_posAttr, 2, GL_FLOAT, GL_FALSE, 0, vertices);
        

        It should be around line 165.

      4. Right-click on "GL_FALSE" and select "Find Usages" from the context menu.
        In the search results, there will be the line
        /*      GL_COLOR_BUFFER_BIT */
        

        from C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um\gl\GL.h (or similar).

      5. Double-click this search result.
        GL.h will open at the line
        #define GL_FALSE                          0
        

      The line is found correctly but the wrong line is displayed in the search results. They should display the actual line.

      Found when updating Squish-Suite CSUP.

        Attachments

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

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              rlohning Robert Löhning
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes