File name of the cocci file currently processed.
Sets "exited" flag, that will stop the transformation of the current file at the end of the execution of the Python script.
Example: tests/exitp.cocci
Returns true
if the meta-variable name
is bound in the rule
rule
.
extend_virtual_ids)
Internal function for the method iteration.register().
Converts the string id
to a C identifier.
(Equivalent to Coccilib.make_ident in OCaml.)
Example: tests/python_mdecl.cocci
Parses the string phrase
as a C statement and returns the statement.
Example: tests/python_mdecl.cocci
Parses the string env
as a C declaration and parses the string phrase
as a C statement in this environment and returns the statement.
Example: tests/python_mdecl.cocci
Parses the string type
as a C type and returns the type.
Converts the integer len
to a list length.
Returns a position with filename fl
(a string), element fn
(a string),
starting at line startl
, column startc
(integers), and
ending at line endl
, column endc
(integers).
(Equivalent to Coccilib.make_position in OCaml.)
Example: tests/python_mdeclp.cocci
Returns the list of current file names (as strings). (Equivalent to Coccilib.files in OCaml.)
Example: tests/scope_id_1_python.cocci