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

Add compilation database plugin

    XMLWordPrintable

Details

    Description

      Opening an C++ file without an project leads to an subpar experience because our C++ support needs some buildĀ  information like include paths and compiler flags to provide correct highlighting, code completion etc.. But CMake based projects provide that information already in theĀ  "compile_commands.json" file. We now can open it an provide a simple project view of the project.

      In portale's words:
      The ability to import and export (also in Qt Creator 4.8) compilation databases opens up Qt Creator to interoperate with a growing number of tools which support this standard.

      • Import: Several build systems (which are not supported by Qt Creator) can export a compilation database. Qt Creator can now be used as C++ editor with all the bess an whistles
      • Export: Any tool that accepts compilation databases (also non-clang-tools like https://www.sourcetrail.com/ ) can now be fed with any project from Qt Creator.
        An interesting overview of opportunities can be found here.

      Attachments

        There are no Sub-Tasks for this issue.
        For Gerrit Dashboard: QTCREATORBUG-21115
        # Subject Branch Project Status CR V

        Activity

          People

            yvvan Ivan Donchevskii
            bubke Marco Bubke
            Petref Saraci Petref Saraci (Inactive)
            Alessandro Portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes