You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
844 B
41 lines
844 B
(*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
open! IStd
|
|
module F = Format
|
|
|
|
type std_vector_function =
|
|
| Assign
|
|
| Clear
|
|
| Emplace
|
|
| EmplaceBack
|
|
| Insert
|
|
| PushBack
|
|
| Reserve
|
|
| ShrinkToFit
|
|
[@@deriving compare]
|
|
|
|
val pp_std_vector_function : F.formatter -> std_vector_function -> unit
|
|
|
|
type java_iterator_function = Remove [@@deriving compare]
|
|
|
|
type t =
|
|
| CFree
|
|
| ConstantDereference of IntLit.t
|
|
| CppDelete
|
|
| EndIterator
|
|
| GoneOutOfScope of Pvar.t * Typ.t
|
|
| StdVector of std_vector_function
|
|
| JavaIterator of java_iterator_function
|
|
[@@deriving compare]
|
|
|
|
val pp : F.formatter -> t -> unit
|
|
|
|
val issue_type_of_cause : t -> IssueType.t
|
|
|
|
val describe : F.formatter -> t -> unit
|