Files
mercury/tests/valid
Zoltan Somogyi 62d9fcbe4b Ignore (mostly) comments inside foreign_procs.
compiler/foreign.m:
    When returning the list of identifiers inside a foreign_proc's code,
    ignore the contents of comments. This means that warnings about
    variable names that occur in the foreign_proc's argument list
    but do not occur in the foreign_proc's code cannot be shut up anymore
    by mention the variable name in comments.

    The "mostly" part is that typecheck.m still looks at the bodies
    of foreign_procs without knowing about comments. Fixing that
    will be part a future change.

NEWS.md:
    Announce this breaking change.

compiler/fact_table_gen.m:
    When we try to generate a foreign_proc's body for a fact table
    but cannot do so due to the fact table file not being readable,
    add a marker to the predicate that the fact table is for.

compiler/hlds_markers.m:
    Update the documentation of the existing predicate marker
    we use for this.

compiler/make_hlds_warn.m:
    Do not warn about singleton variables in foreign_proc bodies
    that are empty due to missing fact table files.

library/array.m:
library/io.file.m:
library/profiling_builtin.m:
library/stm_builtin.m:
library/table_builtin.m:
library/term_size_prof_builtin.m:
tests/invalid/erroneous_throw_promise.m:
tests/invalid/foreign_procs_exist_type.m:
tests/invalid/foreign_purity_mismatch.m:
tests/invalid/gh72_errors.m:
tests/invalid_purity/purity.m:
tests/valid/solv.m:
    Shut up warnings about singletons in foreign_procs by adding a _ prefix
    to the names of the relevant arguments, and delete the comments
    that can no longer do that job.

tests/invalid/foreign_purity_mismatch.err_exp:
tests/invalid/gh72_errors.err_exp:
tests/invalid/gh72_errors.err_exp2:
tests/invalid/gh72_errors.err_exp3:
tests/invalid_purity/purity.err_exp:
    Expect updated line numbers.

tests/warnings/warn_return.{m,err_exp}:
    Extend this test case to test that

    - we DO warn about return statements outside comments, but
    - we DO NOT warn about return statements inside comments.
2026-01-28 13:34:30 +11:00
..
2021-07-28 01:32:43 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2019-07-10 02:50:46 +02:00
2017-01-20 00:28:19 +11:00
2021-07-27 19:29:21 +10:00
2019-08-20 10:29:04 +10:00
2019-09-29 12:16:30 +10:00
2016-03-13 01:11:05 +11:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2018-10-01 06:54:00 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2023-11-02 03:22:50 +11:00
2019-05-28 23:04:35 +02:00
2018-01-11 23:09:08 -05:00