Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fortran: Fix suprious dependencies with submodules | Vitaly Mogulian | 2022-08-09 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 695f0d0d3a (cmFortranParser: Parse keywords as lexical tokens, 2016-09-05, v3.7.0-rc1~150^2) we created keyword-specific variants of the original `USE WORD other EOSTMT` production, such as `MODULE WORD other EOSTMT` and `INTERFACE WORD other EOSTMT`. The same pattern was used by more keyword-specific productions in commit b5ac8b8aa7 (Fortran: Add support for submodule syntax in dependency scanning, 2016-09-05, v3.7.0-rc1~73^2~1). The postfix part (`other`) of several keyword-specific productions is not needed to match Fortran syntax. See the Fortran 2018 standard, para.4.1.4/1 on p.28, para.14.2.1/2 on pp.293-294. The postfix is needed only for a case of operator 'use': use <module-name> [, only : <list-of-vars>] The unnecessary postfix matching from the keyword-specific productions such as module, submodule, and interface declarations can cause spurious module dependencies to be detected, so remove it. Extend the test suite with examples covering the previously-broken cases. Fixes: #18427 | ||||
* | Fortran: Extend submodule test with great-grandchild | Brad King | 2018-04-20 | 1 | -0/+3 |
| | | | | | Name the module using CamelCase to test lower-case file name conversion. Also add coverage of existing "sibling" module. | ||||
* | Fortran: Add support for submodule dependencies | Brad King | 2018-04-20 | 1 | -1/+20 |
| | | | | | | | | | | | | | | | | | | | | | Since commit v3.7.0-rc1~73^2~1 (Fortran: Add support for submodule syntax in dependency scanning, 2016-09-05) we support parsing Fortran sources that use submodule syntax, but it left addition of `.smod` dependencies to future work. Add it now. The syntax submodule (module_name) submodule_name means the current source requires `module_name.mod` and provides `module_name@submodule_name.smod`. The syntax submodule (module_name:submodule_name) nested_submodule_name means the current source requires `module_name@submodule_name.smod` provides `module_name@nested_submodule_name.smod`. Fixes: #17017 | ||||
* | Tests: Add Fortran submodule tests | Brad King | 2016-09-23 | 1 | -0/+1 |
Co-Author: Damian Rouson <damian@sourceryinstitute.org> Issue: #16234 |