Next: , Previous: , Up: Warnings about programming style   [Contents][Index]


9.10.3.3 Warnings about missing order


--warn-unsorted-import-blocks
--warn-unsorted-import-block

Generate a warning if two import_module and/or use_module declarations occur on the same line, or if a sequence of such declarations on consecutive lines are not sorted on module name.


--warn-inconsistent-pred-order-clauses
--warn-inconsistent-pred-order

Generate a warning if the order of the definitions does not match the order of the declarations for either the exported predicates and functions of the module, or for the nonexported predicates and functions of the module. Applies for definitions by Mercury clauses.


--warn-inconsistent-pred-order-foreign-procs

Generate a warning if the order of the definitions does not match the order of the declarations for either the exported predicates and functions of the module, or for the nonexported predicates and functions of the module. Applies for definitions by either Mercury clauses or foreign_proc pragmas.