fortran depscan: ignore module procedure

pull/5516/head
Michael Hirsch, Ph.D 5 years ago
parent 930d2457e1
commit 927ce94d99
  1. 4
      mesonbuild/backend/ninjabackend.py

@ -38,8 +38,8 @@ from ..mesonlib import get_compiler_for_source, has_path_sep
from .backends import CleanTrees from .backends import CleanTrees
from ..build import InvalidArguments from ..build import InvalidArguments
FORTRAN_INCLUDE_PAT = r"#?include\s*['\"](\w+\.\w+)['\"]\s*$" FORTRAN_INCLUDE_PAT = r"#?include\s*['\"](\w+\.\w+)['\"]"
FORTRAN_MODULE_PAT = r"\s*\bmodule\b\s+(\w+)" FORTRAN_MODULE_PAT = r"\s*\bmodule\b\s+(?!procedure)(\w+)"
FORTRAN_SUBMOD_PAT = r"\s*submodule\s*\((\w+:?\w+)\)\s*(\w+)" FORTRAN_SUBMOD_PAT = r"\s*submodule\s*\((\w+:?\w+)\)\s*(\w+)"
FORTRAN_USE_PAT = r"\s*use,?\s*(?:non_intrinsic)?\s*(?:::)?\s*(\w+)" FORTRAN_USE_PAT = r"\s*use,?\s*(?:non_intrinsic)?\s*(?:::)?\s*(\w+)"

Loading…
Cancel
Save