aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:53 -0400
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:54 +0200
commit8485fe1b546f755616c6152fd5b6aa2520ac58ef (patch)
tree972bafc866b24f4c681ef428198cb31b3ee9cbf3 /libcpp
parentf43be6cc9d84eb8e80c9b01d96a36e5937887253 (diff)
downloadgcc-8485fe1b546f755616c6152fd5b6aa2520ac58ef.zip
gcc-8485fe1b546f755616c6152fd5b6aa2520ac58ef.tar.gz
gcc-8485fe1b546f755616c6152fd5b6aa2520ac58ef.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