Files
mercury/compiler
Zoltan Somogyi ae54908b7e Make --warn-unused-imports more effective.
Specifically, make it warn about interface imports that are not used
in the initial HLDS, even if they *are* used after the expansion of
type-, inst- and mode-equivalences.

compiler/hlds_module.m:
    Add a slot to the HLDS to store the set of modules that are
    imported in the interface but are unused there when the HLDS
    is first constructed.

compiler/module_qual.qualify_items.m:
    Compute this set, and return it to mercury_compile_make_hlds.m.

    Make the code module qualifying aug_compilation_units warn about
    unused interface imports only if unused_imports.m won't do the same later.

compiler/mercury_compile_make_hlds.m:
    Pass the set to make_hlds_passes.m.

compiler/make_hlds_passes.m:
    Store the set in the initial HLDS.

compiler/prog_data_used_modules.m:
    Replace set_ordlists with set_tree234s.

compiler/unused_imports.m:
    Consider an interface-imported module unused in the interface
    if module_qual.qualify_items.m considered it unused, even if
    changes made by equiv_type.m has added uses of it later.

compiler/handle_options.m:
    Stop making --warn-unused-imports imply --no-warn-unused-interface-imports,
    since new logic in module_qual.qualify_items.m makes this unnecessary.

compiler/make_module_file_names.m:
compiler/type_inst_mode_map.m:
compiler/write_deps_file.m:
    Move imports from the interface section to the implementation section,
    in response to the new, more thorough warnings.
2025-11-27 17:07:41 +11:00
..
2024-12-14 21:30:57 +11:00
2024-12-14 21:30:57 +11:00
2025-11-17 09:19:13 +11:00
2025-10-13 15:45:05 +11:00
2025-10-01 15:24:55 +10:00
2025-01-25 02:50:36 +11:00
2025-08-14 08:50:08 +02:00
2025-10-21 18:21:35 +11:00
2025-10-20 11:34:48 +11:00
2025-03-12 00:55:36 +11:00
2025-10-13 15:45:05 +11:00
2025-10-20 11:34:48 +11:00
2025-11-16 15:31:44 +11:00
2025-08-31 12:47:10 +02:00
2025-11-01 04:21:18 +11:00
2025-09-23 15:17:49 +10:00
2025-09-23 15:17:49 +10:00
2025-09-23 15:17:49 +10:00
2025-10-21 18:21:35 +11:00
2025-10-20 11:34:48 +11:00
2025-10-01 15:24:55 +10:00
2025-10-01 15:24:55 +10:00
2025-09-26 14:30:51 +10:00
2025-10-03 14:37:50 +10:00
2025-01-20 00:39:43 +11:00
2025-09-23 15:17:49 +10:00
2025-11-20 15:38:36 +11:00
2025-11-16 19:31:25 +11:00
2025-10-01 15:24:55 +10:00
2025-10-01 15:24:55 +10:00
2025-11-16 15:31:44 +11:00
2025-11-19 22:09:04 +11:00
2025-01-11 01:39:26 +11:00
2025-06-22 09:55:29 +02:00
2025-10-01 15:24:55 +10:00
2025-10-20 11:34:48 +11:00
2025-10-20 11:34:48 +11:00
2025-07-07 11:50:30 +10:00
2025-11-16 18:05:59 +11:00
2025-09-23 15:17:49 +10:00
2025-09-23 15:17:49 +10:00
2025-06-17 11:20:30 +02:00
2024-12-30 20:17:22 +11:00
2024-12-30 20:17:22 +11:00
2024-12-30 20:17:22 +11:00
2025-11-05 16:02:15 +11:00
2025-10-29 21:07:52 +11:00
2025-10-31 21:51:10 +11:00
2025-08-29 12:10:19 +02:00
2024-12-30 16:01:59 +11:00
2024-12-30 16:01:59 +11:00
2025-11-16 13:42:36 +11:00
2025-10-20 11:34:48 +11:00
2025-09-23 15:17:49 +10:00
2025-11-05 21:41:27 +11:00
2025-09-23 15:17:49 +10:00
2025-10-27 17:46:56 +11:00
2025-10-15 21:32:38 +11:00
2025-10-17 16:12:07 +11:00
2025-11-03 05:08:44 +11:00
2025-10-23 17:12:22 +11:00
2025-11-20 18:09:36 +11:00
2025-10-21 18:21:35 +11:00