Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limited support for OCaml 4.12 into omp1 #108

Merged
merged 4 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ast_408.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1262,18 +1262,18 @@ end = struct
(* Warn for unused and ambiguous docstrings *)

let warn_bad_docstrings () =
if Warnings.is_active (Warnings.Bad_docstring true) then begin
if Warnings.is_active (Migrate_parsetree_compiler_functions.bad_docstring true) then begin
List.iter
(fun ds ->
match ds.ds_attached with
| Info -> ()
| Unattached ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring true)
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring true)
| Docs ->
match ds.ds_associated with
| Zero | One -> ()
| Many ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring false))
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring false))
(List.rev !docstrings)
end

Expand Down
6 changes: 3 additions & 3 deletions src/ast_409.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1251,18 +1251,18 @@ end = struct
(* Warn for unused and ambiguous docstrings *)

let warn_bad_docstrings () =
if Warnings.is_active (Warnings.Bad_docstring true) then begin
if Warnings.is_active (Migrate_parsetree_compiler_functions.bad_docstring true) then begin
List.iter
(fun ds ->
match ds.ds_attached with
| Info -> ()
| Unattached ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring true)
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring true)
| Docs ->
match ds.ds_associated with
| Zero | One -> ()
| Many ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring false))
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring false))
(List.rev !docstrings)
end

Expand Down
6 changes: 3 additions & 3 deletions src/ast_410.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1254,18 +1254,18 @@ end = struct
(* Warn for unused and ambiguous docstrings *)

let warn_bad_docstrings () =
if Warnings.is_active (Warnings.Bad_docstring true) then begin
if Warnings.is_active (Migrate_parsetree_compiler_functions.bad_docstring true) then begin
List.iter
(fun ds ->
match ds.ds_attached with
| Info -> ()
| Unattached ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring true)
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring true)
| Docs ->
match ds.ds_associated with
| Zero | One -> ()
| Many ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring false))
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring false))
(List.rev !docstrings)
end

Expand Down
6 changes: 3 additions & 3 deletions src/ast_411.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1254,18 +1254,18 @@ end = struct
(* Warn for unused and ambiguous docstrings *)

let warn_bad_docstrings () =
if Warnings.is_active (Warnings.Bad_docstring true) then begin
if Warnings.is_active (Migrate_parsetree_compiler_functions.bad_docstring true) then begin
List.iter
(fun ds ->
match ds.ds_attached with
| Info -> ()
| Unattached ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring true)
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring true)
| Docs ->
match ds.ds_associated with
| Zero | One -> ()
| Many ->
prerr_warning ds.ds_loc (Warnings.Bad_docstring false))
prerr_warning ds.ds_loc (Migrate_parsetree_compiler_functions.bad_docstring false))
(List.rev !docstrings)
end

Expand Down
Loading