Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1428

Add support for JSON Compilation Database

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.21
    • Component/s: build-wrapper
    • Labels:
      None

      Description

      http://clang.llvm.org/docs/JSONCompilationDatabase.html

      Workaround ( at your own risk )

      If build-wrapper doesn't work at all with the build-system but able to generate a json compilation database for it, use convert-compile-commands.py to create a build-wrapper-dump.json file to be fed to the analyzer.

      # output generated to cfamily-compilation-database/build-wrapper-dump.json
      $ python convert-compile-commands.py path/to/compile_commands.json
      

      Then, you can add the following to sonar-project.properties:

      sonar.cfamily.build-wrapper-output=cfamily-compilation-database
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              massimo.paladin Massimo PALADIN
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: