diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-07-24 18:07:53 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-07-24 18:07:53 -0400 |
commit | ee2dad94acc88c2ea78a91b7eb8914e7c1bae829 (patch) | |
tree | 5ac9621b49377176ee46b0e6ef9bab03227e44ae /libcpp | |
parent | 2486234b5ae0d71ca7bbdc6e216b4707cd5bef15 (diff) | |
download | gcc-ee2dad94acc88c2ea78a91b7eb8914e7c1bae829.zip gcc-ee2dad94acc88c2ea78a91b7eb8914e7c1bae829.tar.gz gcc-ee2dad94acc88c2ea78a91b7eb8914e7c1bae829.tar.bz2 |
diagnostics: SARIF output: use std::unique_ptr throughout
No functional change intended.
gcc/analyzer/ChangeLog:
* checker-event.cc (maybe_add_sarif_properties): Update setting
of "original_fndecl" to use typesafe unique_ptr variant of
json::object::set.
gcc/ChangeLog:
* diagnostic-format-sarif.cc: Include "make-unique.h". Convert
raw pointers to std::unique_ptr throughout to indicate ownership,
adding comments in the few places where pointers are borrowed.
Use typesafe unique_ptr variants of json::object::set and
json::array::append throughout to make types of properties more
explicit, whilst using "auto" to reduce typing.
Use "nullptr" rather than "NULL" throughout.
* diagnostic-format-sarif.h (make_sarif_logical_location_object):
Use std::unique_ptr for return type.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions