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

QbsProject pushes duplicated include paths to the code model

    XMLWordPrintable

Details

    • 014167c8e8fe642874a330ae41a444e6f3ed73a9

    Description

      1. Open qtcreator.qbs
      2. Open e.g. clangcompletionassistprocessor.h
      3. At the top, start writing #include <cpptool
        ==> The resulting completion list yields multiple "cpptools/" entries.

      This is due duplicated include paths. In QbsProject::updateCppCodeModel the call ppBuilder.setHeaderPaths(grpHeaderPaths); sets the duplicated include paths.

      Side note: To check the currently used include path for the code model for the currently open file: Menu: Tools > C++ > "Inspect C++ Code Model", select top level tab "Project Parts", select bottom level tab "Header Paths".

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes