Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule parsing support; hashing fix #39

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

marshallward
Copy link
Member

This patch adds support for identifying submodules and tagging the
parent module as their dependency.

Expressions as submodule (some_mod) some_submod will tag the object
file of some_mod as a dependency of the source file of some_submod.


This patch also modifies the module regexp to reject any of the
following:

  • module procedure
  • module subroutine
  • module function

The latter two are used when working with submodules. The first is
typically used for generic interfaces.

Previously the procedure exception was applied to the consistency
check, but it may have inadvertently been adding a module named
procedure to the hashes. This was probably not causing any errors,
but was probably nonetheless not the desired behavior.

This change prevents any of the subprogram keywords from being added to
the hashes.

This patch adds support for identifying submodules and tagging the
parent module as their dependency.

Expressions as `submodule (some_mod) some_submod` will tag the object
file of `some_mod` as a dependency of the source file of `some_submod`.

---

This patch also modifies the module regexp to reject any of the
following:

- module procedure
- module subroutine
- module function

The latter two are used when working with submodules.  The first is
typically used for generic interfaces.

Previously the `procedure` exception was applied to the consistency
check, but it may have inadvertently been adding a module named
`procedure` to the hashes.  This was probably not causing any errors,
but was probably nonetheless not the desired behavior.

This change prevents any of the subprogram keywords from being added to
the hashes.
@underwoo underwoo merged commit caad56d into NOAA-GFDL:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants