diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-07-24 18:07:53 -0400 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:54 +0200 |
commit | 8485fe1b546f755616c6152fd5b6aa2520ac58ef (patch) | |
tree | 972bafc866b24f4c681ef428198cb31b3ee9cbf3 /libcpp | |
parent | f43be6cc9d84eb8e80c9b01d96a36e5937887253 (diff) | |
download | gcc-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