Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-997

Add support to generate Clang JSON compilation database

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 1.7.0
    • None
    • General
    • None
    • 941d7c3585cf0948055e11e79258fe1c521dbc06

    Description

      Lot of clang based tools need knowledge of the exact compilation command line. These tools can read the command line from a clang JSON compilation database.
      Cmake support this, and as a workaround for qbs, it is possible to generate it via Build EAR.

      It would be nice if qbs could support this natively, as using the wrapper approach has some drawbacks (eg, you need to build the whole code base, some issues with LD_PRELOAD, ....).
      maybe something like

      qbs generate -g clang-tools

      Ideally, Qbs would generate this file without performing any compilation steps.

      The advantage over cpp.compilerWrapper is increased flexibility and decoupled build/static analysis.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              chgans Christian Gagneraud
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes