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.
29 lines
999 B
29 lines
999 B
10 years ago
|
(*
|
||
10 years ago
|
* Copyright (c) 2013 - present Facebook, Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* This source code is licensed under the BSD style license found in the
|
||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||
|
*)
|
||
10 years ago
|
|
||
9 years ago
|
open! Utils
|
||
|
|
||
10 years ago
|
(** This module handles buckets of memory leaks in Objective-C *)
|
||
|
|
||
|
val objc_arc_flag : string
|
||
|
|
||
9 years ago
|
(* Returns whether a memory leak should be raised. *)
|
||
10 years ago
|
(* If cf is passed, then check leaks from Core Foundation. *)
|
||
|
(* If arc is passed, check leaks from code that compiles with arc*)
|
||
|
(* If no arc is passed check the leaks from code that compiles without arc *)
|
||
9 years ago
|
val should_raise_objc_leak : Typ.t -> string option
|
||
10 years ago
|
|
||
9 years ago
|
(* Returns whether a memory leak should be raised for a C++ object.*)
|
||
|
(* If ml_buckets contains cpp, then check leaks from C++ objects. *)
|
||
9 years ago
|
val should_raise_cpp_leak : string option
|
||
9 years ago
|
|
||
9 years ago
|
val should_raise_leak_unknown_origin : bool
|
||
9 years ago
|
|
||
9 years ago
|
val ml_bucket_unknown_origin : string
|