Integrated Clang code analysis as build step possible?

Sysprogs forums Forums VisualGDB Integrated Clang code analysis as build step possible?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13523
    gruebs
    Participant

    Is it possible to do the Clang code analysis as build step?

    Reason is, that it shall be a part of a nightly or an continuous integration build.

    #13525
    Ophidian14
    Participant

    Is something preventing you from invoking clang on your own as part of your build process?

    #13530
    support
    Keymaster

    Hi,

    We have long-term plans for having a special command for scanning the entire project with the code analyzer and producing a fast searchable report, however currently the built-in analyzer only works for the currently edited file by showing the warnings in the Errors pane.

    The best workaround would be the solution suggested by Ophidian14 – add a custom post-build step that would invoke the analyzer. For MSBuild projects you can configure this under C/C++ settings and VisualGDB will automatically launch the step for each source file, applying the regular compiler arguments.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.