Frama-C API - History
Source code navigation history.
type history_elt =
| Global of Frama_c_kernel.Cil_types.global
| Localizable of Pretty_source.localizable
If possible (ie. if back
has been called), go forward one step in the history.
val push : history_elt -> unit
Add the element to the current history; clears the forward history, and push the old current element to the past history.
val set_forward : history_elt list -> unit
Replaces the forward history with the given elements.
val get_current : unit -> history_elt option
return the current history point, if available
Redisplay the current history point, if available. Useful to refresh the gui.
on_current_history ()
returns a closure at
such that at f
will execute f
in a context in which the history will be the one relevant when on_current_history
was executed.
val selected_localizable : unit -> Pretty_source.localizable option
selected_localizable ()
returns the localizable currently selected, or None
if nothing or an entire global is selected.
val translate_history_elt : history_elt -> history_elt option
try to translate the history_elt of one project to the current one