|
|
@ -17,7 +17,7 @@ open! Utils
|
|
|
|
(* Type pointers *)
|
|
|
|
(* Type pointers *)
|
|
|
|
|
|
|
|
|
|
|
|
exception Not_Clang_Pointer
|
|
|
|
exception Not_Clang_Pointer
|
|
|
|
type class_info = string * [`CPP | `OBJC]
|
|
|
|
type class_info = string * [`CPP | `OBJC] [@@deriving compare]
|
|
|
|
|
|
|
|
|
|
|
|
type t_ptr = [
|
|
|
|
type t_ptr = [
|
|
|
|
| `TPtr of int
|
|
|
|
| `TPtr of int
|
|
|
@ -27,11 +27,11 @@ type t_ptr = [
|
|
|
|
| `ClassType of class_info
|
|
|
|
| `ClassType of class_info
|
|
|
|
| `StructType of string
|
|
|
|
| `StructType of string
|
|
|
|
| `DeclPtr of int
|
|
|
|
| `DeclPtr of int
|
|
|
|
| `ErrorType]
|
|
|
|
| `ErrorType
|
|
|
|
|
|
|
|
] [@@deriving compare]
|
|
|
|
|
|
|
|
|
|
|
|
module TypePointerOrd = struct
|
|
|
|
module TypePointerOrd = struct
|
|
|
|
type t = t_ptr
|
|
|
|
type t = t_ptr [@@deriving compare]
|
|
|
|
let compare = Pervasives.compare
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
module TypePointerMap = Map.Make(TypePointerOrd)
|
|
|
|
module TypePointerMap = Map.Make(TypePointerOrd)
|
|
|
|