camfort / fortran-src

Fortran parsing and static analysis infrastructure
https://hackage.haskell.org/package/fortran-src
Other
48 stars 20 forks source link

Functionality to print a dependency list for a Fortran code base #284

Closed dorchard closed 2 months ago

dorchard commented 3 months ago

Provides the --show-make-list option to print dependency list from tree to root, e.g.,

% fortran-src --show-make-list test-data/module/.
test-data/module/./leaf.f90
test-data/module/./mid1.f90
test-data/module/./mid2.f90
test-data/module/./top.f90

(where top uses mid1 and mid2 and both of these use leaf). This PR includes a test for this with some fixture data and makes a small improvement to error reporting for --show-make-graph).

dorchard commented 3 months ago

Requested by @jaytorry.

dorchard commented 3 months ago

Updated to remove duplicates due to unusual non-standard import patterns.

dorchard commented 2 months ago

@jaytorry - are you happy with this functionality now? If so I will merge it.

jaytorry commented 2 months ago

@dorchard - Yes seems to be working well now.