Class type Visitor.frama_c_visitor

class type frama_c_visitor = object .. end
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


Inherits
method frama_c_plain_copy : frama_c_visitor
same as plain_copy_visitor but for frama-c specific methods
method vstmt_aux : Cil_types.stmt -> Cil_types.stmt Cil.visitAction
Replacement of vstmt.
Consult the Plugin Development Guide for additional details.
method vglob_aux : Cil_types.global -> Cil_types.global list Cil.visitAction
Replacement of vglob.
Consult the Plugin Development Guide for additional details.
method current_kf : 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).
Consult the Plugin Development Guide for additional details.
method set_current_kf : Cil_types.kernel_function -> unit
Internal use only.
method reset_current_kf : unit -> unit
Internal use only.