From b9b5fc0c2175b34131d9fd0805b1b307f754f4f0 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 15 Sep 2020 14:25:52 -0400 Subject: analyzer: add program_point::get_next Avoid some future copy-and-paste by introducing a function. gcc/analyzer/ChangeLog: * engine.cc (exploded_graph::process_node) : Simplify by using program_point::get_next. * program-point.cc (program_point::get_next): New. * program-point.h (program_point::get_next): New decl. --- gcc/analyzer/program-point.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/analyzer/program-point.h') diff --git a/gcc/analyzer/program-point.h b/gcc/analyzer/program-point.h index cb11478..97fd0a5 100644 --- a/gcc/analyzer/program-point.h +++ b/gcc/analyzer/program-point.h @@ -294,6 +294,8 @@ public: /* For before_stmt, go to next stmt. */ void next_stmt () { m_function_point.next_stmt (); } + program_point get_next () const; + private: function_point m_function_point; call_string m_call_string; -- cgit v1.1