diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-07-24 18:07:55 -0400 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:54 +0200 |
commit | ffab30cde56ac0b33b859fb2f248dc3f1f01c010 (patch) | |
tree | 23cb68f60541ee7008bed6b5a64698b523b17127 /libcpp | |
parent | 6cce58792ba040b435c0943dff5f0781fb9b9e54 (diff) | |
download | gcc-ffab30cde56ac0b33b859fb2f248dc3f1f01c010.zip gcc-ffab30cde56ac0b33b859fb2f248dc3f1f01c010.tar.gz gcc-ffab30cde56ac0b33b859fb2f248dc3f1f01c010.tar.bz2 |
diagnostics: SARIF output: add "workingDirectory" property (§3.20.19)
gcc/ChangeLog:
* diagnostic-format-sarif.cc
(sarif_builder::make_artifact_location_object): Make public.
(sarif_invocation::sarif_invocation): Add param "builder".
Use it to potentially populate the "workingDirectory" property
with the result of pwd (§3.20.19).
(sarif_builder::sarif_builder): Pass *this to m_invocation_obj's
ctor.
gcc/testsuite/ChangeLog:
* c-c++-common/diagnostic-format-sarif-file-1.c: Verify that we have
a "workingDirectory" property.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions