Frama-C API - Kernel_ast
Ast Data
module Position : Data.S with type t = Frama_c_kernel.Filepath.positionRepresented by a Json record with file, dir, basename, line
Ast Markers
module type Tag = sig ... endmodule Decl : Tag with type t = Frama_c_kernel.Printer_tag.declarationmodule Marker : Tag with type t = Frama_c_kernel.Printer_tag.localizableAst Markers of Specific Kinds
module Lval : sig ... endMarkers that are l-values.
module Stmt : Data.S with type t = Frama_c_kernel.Cil_types.stmtMarkers that are statements.
module Kinstr : Data.S with type t = Frama_c_kernel.Cil_types.kinstrOptional markers interpreted as kinstr.
Ast Printer
Ast Information
module Information : sig ... endGlobals
module Functions : sig ... endtype 'a filter_registration = string -> ?labels:(string * string) -> ?default:bool -> ?enable:(unit -> bool) -> ?add_hook:((unit -> unit) -> unit) -> ('a -> bool) -> unitDefinition of a filter on elements of type 'a with a unique name and a boolean function f: 'a -> bool, allowing the user to show/hide elements for which f is true or false. Optional arguments are:
labelsdefines the labels for the positive and negative versions of the filter. By default, they are "<name> elements" and "non-<name> elements".- if
defaultis provided, only elements x for whichf x = defaultare shown by default. Otherwise, all elements are shown by default. - if
enableis provided, the filter is active only whenenable ()is true. Otherwise, the filter is always active. - if
hookis provided, it is used to register a hook to notify the server of filter updates (i.e. whenf xhas changed for some elements).
val register_fct_filter : Frama_c_kernel.Cil_types.kernel_function filter_registrationRegisters a new filter on functions.
val register_var_filter : Frama_c_kernel.Cil_types.varinfo filter_registrationRegisters a new filter on variables.
