Debian Codegraph @

library/library_info.ml

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (* This handles attributes associated to a library file *)
12
13 (*i*)
14 open Names
15 (*i*)
16
17 type t = UserWarn.t
18
19 let warn_library =
20 UserWarn.create_depr_and_user_warnings
21 ~object_name:"Library File"
22 ~warning_name_base:"library-file"
23 (fun dp -> DirPath.print dp)
24 ()
25
26 let warn_library_transitive =
27 UserWarn.create_depr_and_user_warnings ~object_name:"Library File (transitively required)"
28 ~warning_name_base:"transitive-library-file"
29 ~default:CWarnings.Disabled
30 (fun dp -> DirPath.print dp)
31 ()
32
33 let warn_library_info ?loc ?(transitive=false) dp infos =
34 if transitive then warn_library_transitive ?loc dp infos
35 else warn_library ?loc dp infos