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.
40 lines
1.3 KiB
40 lines
1.3 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 for function to retrieve the location (file, line, etc) of instructions *)
|
|
|
|
(* The file passed as an argument to InferClang *)
|
|
val current_source_file : DB.source_file ref
|
|
|
|
(* Inside the json there may be code or type definitions from other files *)
|
|
(* than the one passed as an argument. That current file in the translation is saved*)
|
|
(* in this variable. *)
|
|
val curr_file : DB.source_file ref
|
|
|
|
val clang_to_sil_location : Clang_ast_t.source_location -> int -> Cfg.Procdesc.t option ->
|
|
Location.t
|
|
|
|
val get_sil_location : Clang_ast_t.stmt_info -> int -> CContext.t -> Location.t
|
|
|
|
val get_line : Clang_ast_t.stmt_info -> int -> int
|
|
|
|
val should_translate_lib : Clang_ast_t.source_range -> bool
|
|
|
|
val should_translate_enum : Clang_ast_t.source_range -> bool
|
|
|
|
val update_curr_file : Clang_ast_t.decl_info -> unit
|
|
|
|
val init_curr_source_file : DB.source_file -> unit
|
|
|
|
val check_source_file : string -> unit
|
|
|
|
val source_file_from_path : string -> DB.source_file
|
|
|
|
val get_sil_location_from_range : Clang_ast_t.source_range -> bool -> Location.t
|