-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand Fortran file-extension support #1563
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestlanguage-requestRequest for new language supportRequest for new language supportparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/normalStandard review queue; useful PR with ordinary maintainer urgency.Standard review queue; useful PR with ordinary maintainer urgency.
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlanguage-requestRequest for new language supportRequest for new language supportparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/normalStandard review queue; useful PR with ordinary maintainer urgency.Standard review queue; useful PR with ordinary maintainer urgency.
The built-in Fortran extension table in
src/discover/language.ccurrently recognizes only:This misses several commonly used Fortran extensions, especially in scientific and HPC codebases.
Please expand the Fortran entries to include:
In particular,
.Fis important for preprocessed Fortran source files. For example, CP2K uses.Fextensively in its source tree:https://github.com/cp2k/cp2k/tree/master/src
The uppercase
.Fextension is intentional: in many Fortran build systems it distinguishes source files that are passed through the C preprocessor from ordinary.f/.f90sources.Requested change
Update the Fortran section of
src/discover/language.cto recognize at least:Please also add or update tests covering these extensions.
Reference: CP2K source tree, which contains extensive use of preprocessed
.FFortran sources:https://github.com/cp2k/cp2k/tree/master/src