@@ -963,17 +963,10 @@ public:
void
kf_PyList_New::impl_call_post (const call_details &cd) const
{
- class success : public call_info
+ class success : public success_call_info
{
public:
- success (const call_details &cd) : call_info (cd) {}
-
- label_text
- get_desc (bool can_colorize) const final override
- {
- return make_label_text (can_colorize, "when %qE succeeds",
- get_fndecl ());
- }
+ success (const call_details &cd) : success_call_info (cd) {}
bool
update_model (region_model *model, const exploded_edge *,
@@ -1104,17 +1097,10 @@ public:
void
kf_PyLong_FromLong::impl_call_post (const call_details &cd) const
{
- class success : public call_info
+ class success : public success_call_info
{
public:
- success (const call_details &cd) : call_info (cd) {}
-
- label_text
- get_desc (bool can_colorize) const final override
- {
- return make_label_text (can_colorize, "when %qE succeeds",
- get_fndecl ());
- }
+ success (const call_details &cd) : success_call_info (cd) {}
bool
update_model (region_model *model, const exploded_edge *,
No functional change intended. Successfully regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r15-4361-g77076d85e9aa5e. gcc/testsuite/ChangeLog: * gcc.dg/plugin/analyzer_cpython_plugin.c: Use success_call_info in a couple of places to avoid reimplementing get_desc. Signed-off-by: David Malcolm <dmalcolm@redhat.com> --- .../gcc.dg/plugin/analyzer_cpython_plugin.c | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-)