cex: rename -Wcounterexample as -Wcounterexamples, and support -Wcex

Plural vs. singular is always a problem...

But we already have conflicts-sr and conflicts-rr, so counterexamples
makes more sense than counterexample.  Besides, -Wcounterexample will
still be accepted as an unambiguous prefix of -Wcounterexamples.

Add -Wcex as a convenient alias.

While at it, use only "counterexample", never "counter example".

* src/complain.h, src/complain.c
(Wcounterexample, warning_counterexample): Rename as...
(Wcounterexamples, warning_counterexamples): these.
(argmatch_warning_docs): Rename -Wcounterexample as -Wcounterexamples.
(argmatch_warning_args): Likewise.
Add support for -Wcex.
Adjust dependencies.
This commit is contained in:
Akim Demaille
2020-06-10 07:35:47 +02:00
parent a53c6026cd
commit d2acc4b401
6 changed files with 22 additions and 22 deletions

View File

@@ -723,7 +723,7 @@ rule_conflicts_print (void)
r->code, rr, expected_rr);
}
}
if (warning_is_enabled (Wcounterexample))
if (warning_is_enabled (Wcounterexamples))
report_counterexamples ();
}