Identifying unused code in large Fortran projects
Expose the unused code pass (https://gitlab.com/lfortran/lfortran/-/blob/42c55b6001fd88470a5552b3b4a53aa3a09e12f9/src/lfortran/pass/unused_functions.cpp) to the user, so that it underlines (using our new diagnostic messages rendering) all code that is not used (globally). So it will highlight all code across all files in the project.
You would run it on the main program. I can imagine there being multiple main programs, so one should probably run this across all main programs and ensure the code is not used in any of them.
This was first requested here: https://fortran-lang.discourse.group/t/identifying-unused-code-in-large-fortran-projects/2181
Edited by Ondřej Čertík