Re: [PATCH 1/3] analyzer: show close event for use_after_close diagnostic

2022-07-06 Thread David Malcolm via Gcc-patches
On Wed, 2022-07-06 at 19:55 +0530, Immad Mir wrote: > From: Immad Mir > > This patch saves the "close" event in use_after_close diagnostic > and shows it where possible. This patch is OK to push to trunk (assuming you've done the usual testing). Thanks Dave > > gcc/analyzer/ChangeLog: >  

[PATCH 1/3] analyzer: show close event for use_after_close diagnostic

2022-07-06 Thread Immad Mir via Gcc-patches
From: Immad Mir This patch saves the "close" event in use_after_close diagnostic and shows it where possible. gcc/analyzer/ChangeLog: * sm-fd.cc (use_after_close): save the "close" event and show it where possible. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/fd-4.c (test_