[PATCH 2/2] analyzer: use std::unique_ptr for pending_diagnostic/note

2022-10-21 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. I can self-approve this, but it requires the patch adding make-unique.h as a prerequisite. gcc/analyzer/ChangeLog: * call-info.cc: Add define of INCLUDE_MEMORY. * call-summary.cc: Likewise. * checker-path.cc: L

[PATCH 2/2] analyzer: use std::unique_ptr for pending_diagnostic/note

2022-07-11 Thread David Malcolm via Gcc-patches
This patch uses the new gcc/make-unique.h header for C++11 compatibility. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. I can self-approve this, but it's dependent on the patch to add gcc/make-unique.h. gcc/analyzer/ChangeLog: * call-info.cc: Add define of INCLUDE_MEMORY