aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2021-06-18 11:18:10 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2021-06-18 11:18:10 -0400
commit86606d2ab731a4b8dbbe1e5318a1920210abd65d (patch)
tree4911fc2b1822b68f72df6a68245438ad3e0adbe2 /gcc/fortran
parent0532452dcd17910dfd3d2b0df50dfe3ef1194bf7 (diff)
downloadgcc-86606d2ab731a4b8dbbe1e5318a1920210abd65d.zip
gcc-86606d2ab731a4b8dbbe1e5318a1920210abd65d.tar.gz
gcc-86606d2ab731a4b8dbbe1e5318a1920210abd65d.tar.bz2
analyzer: refactor custom_event, introducing precanned_custom_event class
I have followup work where a custom event's description would be better handled via a vfunc rather that a precanned string, hence this refactoring to make it easy to add custom_event subclasses. gcc/analyzer/ChangeLog: * checker-path.cc (class custom_event): Make abstract to allow for custom vfuncs, splitting existing implementation into... (class precanned_custom_event): New subclass. (custom_event::get_desc): Move to... (precanned_custom_event::get_desc): ...subclass. * checker-path.h (class custom_event): Make abstract to allow for custom vfuncs, splitting existing implementation into... (class precanned_custom_event): New subclass. * diagnostic-manager.cc (diagnostic_manager::add_events_for_eedge): Use precanned_custom_event. * engine.cc (stale_jmp_buf::maybe_add_custom_events_for_superedge): Likewise. * sm-signal.cc (signal_delivery_edge_info_t::add_events_to_path): Likewise. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions