Class type Visitor.frama_c_visitor

Class type for a Db-aware visitor. This is done by defining auxiliary methods that can be redefined in inherited classes, while the corresponding ones from Cil.cilVisitor must retain their values as defined here. Otherwise, annotations may not be visited properly. The replaced functions are

A few hints on how to use correctly this visitor

method frama_c_plain_copy : frama_c_visitor

same as plain_copy_visitor but for frama-c specific methods

Replacement of vstmt.

Replacement of vglob.

method current_kf : Frama_c_kernel.Cil_types.kernel_function option

link to the kernel function currently being visited. NB: for copy visitors, the link is to the original kf (anyway, the new kf is created only after the visit is over).

method set_current_kf : Frama_c_kernel.Cil_types.kernel_function -> unit

Internal use only.

method reset_current_kf : unit -> unit

Internal use only.