aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:53 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:53 -0400
commitee2dad94acc88c2ea78a91b7eb8914e7c1bae829 (patch)
tree5ac9621b49377176ee46b0e6ef9bab03227e44ae /libcpp
parent2486234b5ae0d71ca7bbdc6e216b4707cd5bef15 (diff)
downloadgcc-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