Skip to content

Commit 4942357

Browse files
Merge pull request #362 from Leonidas-from-XIV/ocamlformat-0.20
Upgrade to `ocamlformat.0.20.1`
2 parents 07a73a3 + 0ec74b1 commit 4942357

31 files changed

+1
-89
lines changed

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=0.19.0
1+
version=0.20.1
22
profile=conventional

bin/cli.mli

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,18 @@
11
open Cmdliner.Term
22

33
val named : ('a -> 'b) -> 'a t -> 'b t
4-
54
val non_deterministic : [> `Non_deterministic of bool ] t
6-
75
val syntax : [> `Syntax of Mdx.syntax option ] t
8-
96
val file : [> `File of string ] t
10-
117
val section : [> `Section of string option ] t
12-
138
val silent_eval : [> `Silent_eval of bool ] t
14-
159
val record_backtrace : [> `Record_backtrace of bool ] t
16-
1710
val silent : [> `Silent of bool ] t
18-
1911
val verbose_findlib : [> `Verbose_findlib of bool ] t
20-
2112
val prelude : [> `Prelude of string list ] t
22-
2313
val prelude_str : [> `Prelude_str of string list ] t
24-
2514
val directories : [> `Directories of string list ] t
26-
2715
val root : [> `Root of string option ] t
28-
2916
val force_output : [> `Force_output of bool ] t
3017

3118
type output = File of string | Stdout

bin/main.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
open Cmdliner
1818

1919
let cmds = [ Test.cmd; Pp.cmd; Deps.cmd; Dune_gen.cmd ]
20-
2120
let main (`Setup ()) = `Help (`Pager, None)
2221

2322
let main =

bin/test/main.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@ let cmd =
8585
Term.info "ocaml-mdx-test" ~version:"%%VERSION%%" ~doc ~exits ~man )
8686

8787
let main () = Term.(exit_status @@ eval cmd)
88-
8988
let () = main ()

lib/block.ml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ module Header = struct
4242
end
4343

4444
type section = int * string
45-
4645
type cram_value = { language : [ `Sh | `Bash ]; non_det : Label.non_det option }
4746

4847
type ocaml_value = {
@@ -52,17 +51,14 @@ type ocaml_value = {
5251
}
5352

5453
type toplevel_value = { env : Ocaml_env.t; non_det : Label.non_det option }
55-
5654
type include_ocaml_file = { part_included : string option }
57-
5855
type include_other_file = { header : Header.t option }
5956

6057
type include_file_kind =
6158
| Fk_ocaml of include_ocaml_file
6259
| Fk_other of include_other_file
6360

6461
type include_value = { file_included : string; file_kind : include_file_kind }
65-
6662
type raw_value = { header : Header.t option }
6763

6864
type value =
@@ -87,7 +83,6 @@ type t = {
8783
}
8884

8985
let dump_string ppf s = Fmt.pf ppf "%S" s
90-
9186
let dump_section = Fmt.(Dump.pair int string)
9287

9388
let header t =
@@ -195,7 +190,6 @@ let pp ?syntax ppf b =
195190
pp_errors ppf b
196191

197192
let directory t = t.dir
198-
199193
let file t = match t.value with Include t -> Some t.file_included | _ -> None
200194

201195
let non_det t =
@@ -206,13 +200,9 @@ let non_det t =
206200
| Include _ | Raw _ -> None
207201

208202
let skip t = t.skip
209-
210203
let set_variables t = t.set_variables
211-
212204
let unset_variables t = t.unset_variables
213-
214205
let value t = t.value
215-
216206
let section t = t.section
217207

218208
let guess_ocaml_kind contents =
@@ -234,7 +224,6 @@ let ends_by_semi_semi c =
234224
| _ -> false
235225

236226
let pp_line_directive ppf (file, line) = Fmt.pf ppf "#%d %S" line file
237-
238227
let line_directive = Fmt.to_to_string pp_line_directive
239228

240229
let executable_contents ~syntax b =

lib/block.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ module Header : sig
2020
type t = Shell of [ `Sh | `Bash ] | OCaml | Other of string
2121

2222
val pp : Format.formatter -> t -> unit
23-
2423
val of_string : string -> t option
25-
2624
val infer_from_file : string -> t option
2725
end
2826

lib/cram.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
let src = Logs.Src.create "ocaml-mdx"
1818

1919
module Log = (val Logs.src_log src : Logs.LOG)
20-
2120
open Astring
2221
open Misc
2322

lib/dep.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@
1717
type t = File of string | Dir of string
1818

1919
val of_block : Block.t -> t option
20-
2120
val of_lines : Document.line list -> t list
22-
2321
val to_sexp : t -> Util.Sexp.t

lib/deprecated.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ val warn : ?replacement:string -> string -> since:string -> unit
1919

2020
module Missing_double_semicolon : sig
2121
val fix : Toplevel.t list -> Toplevel.t list
22-
2322
val report : filename:string -> unit
2423
end

lib/document.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
*)
1616

1717
type syntax = Syntax.t = Normal | Cram | Mli
18-
1918
type line = Section of (int * string) | Text of string | Block of Block.t
20-
2119
type t = line list
2220

2321
let pp_line ?syntax ppf (l : line) =

0 commit comments

Comments
 (0)