Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] How to get the function list from AST?


  • Subject: [Frama-c-discuss] How to get the function list from AST?
  • From: anne.pacalet at inria.fr (Anne Pacalet)
  • Date: Tue, 12 Jul 2011 11:24:48 +0200
  • In-reply-to: <CAL2=Xaec=DcV3YwXL2cgKjGZJK+AoTBkLByUk-GYmYsPrkgd4Q@mail.gmail.com>
  • References: <CAL2=Xaec=DcV3YwXL2cgKjGZJK+AoTBkLByUk-GYmYsPrkgd4Q@mail.gmail.com>

Le 12/07/2011 10:38, haihao shen a ?crit :
> However, for a file with only function declaration on implementation, we could
> not get the function list from the globals. So, how to alleviate this problem?

I think that the functions that are only declared, and not used,
are not in the AST. You should try either to add a call to the function,
or to add a body to it.

Hope this helps,
-- 
Anne.