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.

166 lines
2.7 KiB

(*
* 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.
*)
(** Module that contains constants and variables used in the frontend *)
val global_translation_unit_decls : Clang_ast_t.decl list ref
(** arguments of InferClang *)
val debug_mode : bool ref
val stats_mode : bool ref
val models_mode : bool ref
val source_file : string option ref
type lang =
| C
| CPP
| OBJC
| OBJCPP
val lang_from_string : string -> unit
val language : lang ref
val ast_file : string option ref
val no_translate_libs : bool ref
val testing_mode : bool ref
(** constants *)
val json : string ref
val pointer_decl_index : Clang_ast_t.decl Clang_ast_main.PointerMap.t ref
val objc_object : string
val id_cl : string
val self : string
val this : string
val nsstring_cl : string
val nsobject_cl : string
val next_object : string
val nsautorelease_pool_cl : string
val string_with_utf8_m : string
val alloc : string
val malloc : string
val free : string
val static : string
val array_with_objects_count_m : string
val object_at_indexed_subscript_m : string
val dict_with_objects_and_keys_m : string
val emtpy_name_category : string
val objc_class : string
val class_type : string
val retain : string
val release : string
val drain : string
val autorelease : string
val copy : string
val mutableCopy : string
val new_str : string
val init : string
val temp_var : string
val pointer_prefix : string
val void : string
val class_method : string
val cf_non_null_alloc : string
val cf_alloc : string
val cf_bridging_release : string
val cf_bridging_retain : string
val cf_autorelease : string
val ns_make_collectable : string
val builtin_expect : string
val builtin_memset_chk : string
val builtin_object_size : string
val fbAssertWithSignalAndLogFunctionHelper : string
val assert_fail : string
val assert_rtn : string
val handleFailureInMethod : string
val handleFailureInFunction : string
val nonnull_attribute : string
val pseudo_object_type : string
val count : string
val objects : string
val ns_array_ptr : string
val enumerateObjectsUsingBlock : string
val generated_suffix : string
val pointer_type_index : Clang_ast_t.c_type Clang_ast_main.PointerMap.t ref
(* Map from type pointers or declaration pointers to sil types *)
val sil_types_map : (Sil.typ Clang_ast_main.PointerMap.t) ref
val weak_attribute : string
val strong_attribtue : string
val unsafe_unretained_attribute : string
val autoreleasing_atribute : string
val type_pointer_prefix : string
val nsarray_cl : string