mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
ea1506adbe
This patch adds a new "sarif-replay" command-line tool for viewing .sarif files. It uses libdiagnostics to "replay" any diagnostics found in the .sarif files in text form as if they were GCC diagnostics. contrib/ChangeLog: PR other/96032 * regenerate-sarif-spec-index.py: New file. gcc/ChangeLog: PR other/96032 * Makefile.in (lang_checks): If libdiagnostics is enabled, add check-sarif-replay. (SARIF_REPLAY_OBJS): New. (ALL_HOST_OBJS): If libdiagnostics is enabled, add $(SARIF_REPLAY_OBJS). (sarif-replay): New. (install-libdiagnostics): Add sarif-replay to deps, and install it. * configure: Regenerate. * configure.ac (check_languages): If libdiagnostics is enabled, add check-sarif-replay. (LIBDIAGNOSTICS): If libdiagnostics is enabled, add sarif-replay. * doc/install.texi (--enable-libdiagnostics): Note that it also enables sarif-replay. * libsarifreplay.cc: New file. * libsarifreplay.h: New file. * sarif-replay.cc: New file. * sarif-spec-urls.def: New file. gcc/testsuite/ChangeLog: PR other/96032 * lib/gcc-dg.exp (gcc-dg-test-1): Add "replay-sarif". * lib/sarif-replay-dg.exp: New file. * lib/sarif-replay.exp: New file. * sarif-replay.dg/2.1.0-invalid/3.1-not-an-object.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.11.11-malformed-placeholder.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.11.11-missing-arguments-for-placeholders.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.11.11-not-enough-arguments-for-placeholders.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.13.2-no-version.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.13.2-version-not-a-string.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.13.4-bad-runs.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.13.4-no-runs.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.13.4-non-object-in-runs.sarif: New test. * sarif-replay.dg/2.1.0-invalid/3.27.10-bad-level.sarif: New test. * sarif-replay.dg/2.1.0-unhandled/3.27.10-none-level.sarif: New test. * sarif-replay.dg/2.1.0-valid/error-with-note.sarif: New test. * sarif-replay.dg/2.1.0-valid/escaped-braces.sarif: New test. * sarif-replay.dg/2.1.0-valid/null-runs.sarif: New test. * sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: New test. * sarif-replay.dg/2.1.0-valid/spec-example-1.sarif: New test. * sarif-replay.dg/2.1.0-valid/spec-example-2.sarif: New test. * sarif-replay.dg/2.1.0-valid/spec-example-3.sarif: New test. * sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: New test. * sarif-replay.dg/2.1.0-valid/tutorial-example.sarif: New test. * sarif-replay.dg/dg.exp: New script. * sarif-replay.dg/malformed-json/array-missing-comma.sarif: New test. * sarif-replay.dg/malformed-json/array-with-trailing-comma.sarif: New test. * sarif-replay.dg/malformed-json/bad-token.sarif: New test. * sarif-replay.dg/malformed-json/object-missing-comma.sarif: New test. * sarif-replay.dg/malformed-json/object-with-trailing-comma.sarif: New test. Signed-off-by: David Malcolm <dmalcolm@redhat.com> |
||
---|---|---|
.. | ||
gcc-changelog | ||
header-tools | ||
legacy | ||
mdcompact | ||
reghunt | ||
regression | ||
testsuite-management | ||
unicode | ||
vim-gcc-dev | ||
analyze_brprob_spec.py | ||
analyze_brprob.py | ||
bench-stringop | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
check_GNU_style_lib.py | ||
check_GNU_style.py | ||
check_GNU_style.sh | ||
check_makefile_deps.sh | ||
check_warning_flags.sh | ||
check-internal-format-escaping.py | ||
check-MAINTAINERS.py | ||
check-params-in-docs.py | ||
clang-format | ||
compare_tests | ||
compare_two_ftime_report_sets | ||
compare-all-tests | ||
compare-debug | ||
compare-lto | ||
compareSumTests3 | ||
config-list.mk | ||
dg-cmp-results.sh | ||
dg-extract-results.py | ||
dg-extract-results.sh | ||
dg-out-generator.pl | ||
dglib.pm | ||
download_prerequisites | ||
filter_gcc_for_doxygen | ||
filter_knr2ansi.pl | ||
filter_params.py | ||
filter-clang-warnings.py | ||
gcc_build | ||
gcc_update | ||
gcc-git-customization.sh | ||
gcc.doxy | ||
gen_autofdo_event.py | ||
gennews | ||
git-add-user-branch.sh | ||
git-add-vendor-branch.sh | ||
git-backport.py | ||
git-commit-mklog.py | ||
git-descr.sh | ||
git-fetch-vendor.sh | ||
git-fix-changelog.py | ||
git-undescr.sh | ||
gthr_supp_vxw_5x.c | ||
index-prop | ||
jit-coverage-report.py | ||
make_sunver.pl | ||
make-obstacks-texi.pl | ||
mark_spam.py | ||
mklog.py | ||
paranoia.cc | ||
patch_tester.sh | ||
prepare_patch.sh | ||
prepare-commit-msg | ||
prerequisites.md5 | ||
prerequisites.sha512 | ||
regenerate-sarif-spec-index.py | ||
relpath.sh | ||
repro_fail | ||
test_installed | ||
test_mklog.py | ||
test_recheck | ||
test_summary | ||
texi2pod.pl | ||
uninclude | ||
unused_functions.py | ||
update-copyright.py | ||
vimrc | ||
warn_summary |