From 4e812090c00a3ec2775d5123a542fd670626de05 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 11 Jun 2019 20:13:55 -0400 Subject: 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 --- lib/spack/llnl/util/filesystem.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50