Skip to content
/ spack Public
forked from spack/spack

Commit

Permalink
Add additional common C++ and Fortran header file extensions (spack#1…
Browse files Browse the repository at this point in the history
…1600)

* Add additional common C++ and Fortran header file extensions

* Add .hxx extension

* Add .txx and .tcc extensions

* Add .icc extension
  • Loading branch information
adamjstewart authored and dev-zero committed Aug 13, 2019
1 parent 1a67a84 commit b4dceda
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/spack/llnl/util/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4dceda

Please sign in to comment.