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.

36 lines
1.3 KiB

(*
* Copyright (c) 2017 - 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.
*)
open! IStd
(** Given decl, return its procname. This function should be used for all procedures
present in original AST *)
val from_decl : CFrontend_config.translation_unit_context -> Clang_ast_t.decl -> Procname.t
(** WARNING: functions from this module should not be used if full decl is available in AST *)
module NoAstDecl : sig
val c_function_of_string : CFrontend_config.translation_unit_context -> string -> Procname.t
val cpp_method_of_string : string -> string -> Procname.t
val objc_method_of_string_kind : string -> string -> Procname.objc_cpp_method_kind -> Procname.t
end
(** Makes a fresh name for a block defined inside the defining procedure.
It updates the global block_counter *)
val mk_fresh_block_procname : Procname.t -> Procname.t
(** Returns the next fresh name for a block defined inside the defining procedure
It does not update the global block_counter *)
val get_next_block_pvar : Procname.t -> Pvar.t
val reset_block_counter : unit -> unit