Skip to content

draft: feature: Add support for SARIF output

Daniel Tierney requested to merge cmake_sarif_output into master

Adds support for CMake to output results in the SARIF format.

Projects can enable SARIF output by setting CMAKE_EXPORT_SARIF=ON. After running the configure/generate step in a project, the SARIF log will be written to (build)/CMakeResults.sarif. The log records messages and source file location metadata generated during configure/generate. It will not be written for other operations (e.g. CMake script mode).

Consider using the SARIF Viewer extension for VS Code to visualize the results.

Merge request reports

Loading