Brad King 442f4c4902 Merge branch 'backport-implicit-includes-relative' 6 years ago
..
CMakeLists.txt 5c41386357 XLClang: Add policy CMP0089 to present as XL for compatibility 6 years ago
README 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
aix-C-XL-13.1.3.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
aix-C-XL-13.1.3.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
aix-C-XLClang-16.1.0.1.input f709089d84 XLClang: Extract compiler implicit include directories 6 years ago
aix-C-XLClang-16.1.0.1.output f709089d84 XLClang: Extract compiler implicit include directories 6 years ago
aix-CXX-XL-13.1.3.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
aix-CXX-XL-13.1.3.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
aix-CXX-XLClang-16.1.0.1.input f709089d84 XLClang: Extract compiler implicit include directories 6 years ago
aix-CXX-XLClang-16.1.0.1.output 442f4c4902 Merge branch 'backport-implicit-includes-relative' 6 years ago
craype-C-Cray-8.7.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-C-Cray-8.7.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-C-GNU-7.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-C-GNU-7.3.0.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-C-Intel-18.0.2.20180210.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-C-Intel-18.0.2.20180210.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
craype-CXX-Cray-8.7.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-CXX-Cray-8.7.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
craype-CXX-GNU-7.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-CXX-GNU-7.3.0.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
craype-CXX-Intel-18.0.2.20180210.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
craype-CXX-Intel-18.0.2.20180210.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
craype-Fortran-Cray-8.7.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
craype-Fortran-Cray-8.7.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
craype-Fortran-GNU-7.3.0.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
craype-Fortran-GNU-7.3.0.output 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
craype-Fortran-Intel-18.0.2.20180210.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
craype-Fortran-Intel-18.0.2.20180210.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
darwin-C-AppleClang-8.0.0.8000042.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
darwin-C-AppleClang-8.0.0.8000042.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
darwin-CXX-AppleClang-8.0.0.8000042.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
darwin-CXX-AppleClang-8.0.0.8000042.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
darwin_nostdinc-C-AppleClang-8.0.0.8000042.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
darwin_nostdinc-C-AppleClang-8.0.0.8000042.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
darwin_nostdinc-CXX-AppleClang-8.0.0.8000042.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
darwin_nostdinc-CXX-AppleClang-8.0.0.8000042.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
freebsd-C-Clang-3.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
freebsd-C-Clang-3.3.0.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
freebsd-CXX-Clang-3.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
freebsd-CXX-Clang-3.3.0.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
freebsd-Fortran-GNU-4.6.4.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
freebsd-Fortran-GNU-4.6.4.output 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
hand-C-empty.input 82948805ec Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo 6 years ago
hand-C-empty.output 82948805ec Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo 6 years ago
hand-C-relative.input ef41d49812 Fix implicit include directory extraction for adaptive relative paths 6 years ago
hand-C-relative.output ef41d49812 Fix implicit include directory extraction for adaptive relative paths 6 years ago
hand-CXX-empty.input 82948805ec Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo 6 years ago
hand-CXX-empty.output 82948805ec Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo 6 years ago
hand-CXX-relative.input ef41d49812 Fix implicit include directory extraction for adaptive relative paths 6 years ago
hand-CXX-relative.output ef41d49812 Fix implicit include directory extraction for adaptive relative paths 6 years ago
linux-C-GNU-7.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-C-GNU-7.3.0.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-C-Intel-18.0.0.20170811.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-C-Intel-18.0.0.20170811.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
linux-C-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux-C-PGI-18.10.1.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux-C-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux-C-XL-12.1.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux-C-XL-16.1.0.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux-C-XL-16.1.0.0.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
linux-CUDA-NVIDIA-9.2.148.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-CUDA-NVIDIA-9.2.148.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-CXX-GNU-7.3.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-CXX-GNU-7.3.0.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-CXX-Intel-18.0.0.20170811.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
linux-CXX-Intel-18.0.0.20170811.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-CXX-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux-CXX-PGI-18.10.1.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-CXX-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux-CXX-XL-12.1.0.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-CXX-XL-16.1.0.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux-CXX-XL-16.1.0.0.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux-Fortran-GNU-7.3.0.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
linux-Fortran-GNU-7.3.0.output 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
linux-Fortran-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux-Fortran-PGI-18.10.1.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux-Fortran-XL-14.1.0.input 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
linux-Fortran-XL-14.1.0.output 2e91627dea ParseImplicitIncludeInfo: add Fortran implicit include handling 6 years ago
linux_nostdinc-C-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_nostdinc-C-PGI-18.10.1.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_nostdinc-C-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc-C-XL-12.1.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc-CXX-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_nostdinc-CXX-PGI-18.10.1.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
linux_nostdinc-CXX-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc-CXX-XL-12.1.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc-Fortran-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_nostdinc-Fortran-PGI-18.10.1.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_nostdinc_i-C-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc_i-C-XL-12.1.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc_i-CXX-XL-12.1.0.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_nostdinc_i-CXX-XL-12.1.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
linux_pgf77-Fortran-PGI-18.10.1.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
linux_pgf77-Fortran-PGI-18.10.1.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
mingw.org-C-GNU-4.9.3.input dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
mingw.org-C-GNU-4.9.3.output dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
mingw.org-CXX-GNU-4.9.3.input dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs 6 years ago
mingw.org-CXX-GNU-4.9.3.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
netbsd-C-GNU-4.8.5.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
netbsd-C-GNU-4.8.5.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
netbsd-CXX-GNU-4.8.5.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
netbsd-CXX-GNU-4.8.5.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
netbsd_nostdinc-C-GNU-4.8.5.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
netbsd_nostdinc-C-GNU-4.8.5.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
netbsd_nostdinc-CXX-GNU-4.8.5.input 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
netbsd_nostdinc-CXX-GNU-4.8.5.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
openbsd-C-Clang-5.0.1.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
openbsd-C-Clang-5.0.1.output 5990ecb741 Compute implicit include directories from compiler output 6 years ago
openbsd-CXX-Clang-5.0.1.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
openbsd-CXX-Clang-5.0.1.output 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 6 years ago
sunos-C-SunPro-5.13.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
sunos-C-SunPro-5.13.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
sunos-CXX-SunPro-5.13.0.input 5990ecb741 Compute implicit include directories from compiler output 6 years ago
sunos-CXX-SunPro-5.13.0.output 568343767e ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases 6 years ago
sunos-Fortran-SunPro-8.8.0.input ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago
sunos-Fortran-SunPro-8.8.0.output ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix 6 years ago

README

This directory contains sample input files for the implicit include
directories parser for testing. For each configuration there is one
".input" file and one ".output" file.

To generate ".input" files for a system, create a temporary build
directory and chdir to it. Then run cmake pointing to this directory.
The CMakeLists.txt file here will generate ".input" files in your
build directory. The default set of languages is C and CXX. This
can be changed with -DLANGUAGES=language_list. For example:
-DLANGUAGES=Fortran will generate Fortran parser input.

The ".output" files should be generated by hand from the input files.
The test will compare the parser output to the manually generated
".output" file. The two should match.

For compilers that support "-nostdinc"-like flags, you can generate
a test for this with a command like:
cmake -DUNAME=netbsd_nostdinc \
-DCMAKE_C_FLAGS=-nostdinc -DCMAKE_CXX_FLAGS=-nostdinc .

Here is an example for testing the XL compiler with both -I and nostdinc:

env CC=xlc CXX=xlC cmake -DUNAME=linux_nostdinc_i \
-DCMAKE_C_FLAGS='-qnostdinc -I/tmp/ii/test_c' \
-DCMAKE_CXX_FLAGS='-qnostdinc -I/tmp/ii/test_c -I/tmp/ii/test_cxx' .