package frama-clang

  1. Overview
  2. Docs

Various utilities function for manipulating intermediate_format ASTs

exception NoCxxName

raised when a string can't be converted in an existing C++ identifier.

given a string representing a C++ name and optionally a full function signature, returns the corresponding qualified name, with signature.

  • raises NoCxxName

    if the string does not correspond to a C++ name or signature.

val is_builtin_type : string -> bool

true if the given string is the name of a builtin type.

val is_builtin_qual_type : Intermediate_format.qualified_name -> bool
val is_const_type : Intermediate_format.qual_type -> bool

true iff the type is const-qualified.

merge the given specifiers with the ones the type already has.

AST constructors.

names

val empty_qual : string -> Intermediate_format.qualified_name

given a (potentially templated) class and a method name, returns the fully-qualified method name.

Types

.

returns an IR typ corresponding to the Cil's kind

returns the unqualified version of the given typ.

const-qualified version of the given typ.

ensures that the given type is const-qualified.

ensures that the given object pointer type points to a constant type. Does nothing if the original type is not a pointer to an object.

given an object type, returns an unqualified pointer type to the object.

given an object type, returns an unqualified lvreference type to the object

given an object type, returns an unqualified rvreference type to the object

OCaml

Innovation. Community. Security.