diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-06-11 20:13:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 20:13:55 -0400 |
commit | 4e812090c00a3ec2775d5123a542fd670626de05 (patch) | |
tree | 62b8e4b99c9489d7597369684dacc70bd0d9d252 /lib | |
parent | 6ae5f38f265ab420d5729d95988536aeccd3c37c (diff) | |
download | spack-4e812090c00a3ec2775d5123a542fd670626de05.tar.gz spack-4e812090c00a3ec2775d5123a542fd670626de05.tar.bz2 spack-4e812090c00a3ec2775d5123a542fd670626de05.tar.xz spack-4e812090c00a3ec2775d5123a542fd670626de05.zip |
Add additional common C++ and Fortran header file extensions (#11600)
* Add additional common C++ and Fortran header file extensions
* Add .hxx extension
* Add .txx and .tcc extensions
* Add .icc extension
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/llnl/util/filesystem.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index 2234b34d3b..9d8c552e05 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -1141,7 +1141,14 @@ def find_headers(headers, root, recursive=False): raise TypeError(message) # Construct the right suffix for the headers - suffixes = ['h', 'hpp', 'mod'] + suffixes = [ + # C + 'h', + # C++ + 'hpp', 'hxx', 'hh', 'H', 'txx', 'tcc', 'icc', + # Fortran + 'mod', 'inc', + ] # List of headers we are searching with suffixes headers = ['{0}.{1}'.format(header, suffix) for header in headers |