aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:54 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:54 -0400
commitae4f4f767efc156aac4b2e7a874648fdc60307f3 (patch)
tree14f98db982b69f2f04178fff92a81ce2cf7a9797 /libcpp
parentee2dad94acc88c2ea78a91b7eb8914e7c1bae829 (diff)
downloadgcc-ae4f4f767efc156aac4b2e7a874648fdc60307f3.zip
gcc-ae4f4f767efc156aac4b2e7a874648fdc60307f3.tar.gz
gcc-ae4f4f767efc156aac4b2e7a874648fdc60307f3.tar.bz2
diagnostics: JSON output: use std::unique_ptr throughout
No functional change intended. gcc/ChangeLog: * diagnostic-format-json.cc: Include "make-unique.h". (json_output_format::m_toplevel_array): Convert to std::unique_ptr. (json_output_format::json_output_format): Update accordingly. (json_output_format::~json_output_format): Remove manual "delete" of field. (json_from_expanded_location): Convert return type to std::unique_ptr. (json_from_location_range): Likewise. Use nullptr rather than NULL. (json_from_fixit_hint): Convert return type to std::unique_ptr. (json_from_metadata): Likewise. (make_json_for_path): Likewise. (json_output_format::on_end_diagnostic): Use std::unique_ptr throughout. (json_file_output_format::~json_file_output_format): Use nullptr. (selftest::test_unknown_location): Update to use std::unique_ptr. (selftest::test_bad_endpoints): Likewise. Replace NULL with nullptr. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions