cxx-modules-sandbox
cxx-modules-sandbox copied to clipboard
msvc-named: add an executable that uses MSVC extensions
MSVC prefers the .ixx and .cppm extensions for C++20 module
interface units. Add a test that uses these extensions.
Fixes: #24
Cc: @bradking
I'll have to respin the Docker image with new versions of things.
LGTM. In testing this I found that MSVC's -scanDependencies option breaks on .cppm, but works for .cpp or .ixx. I'll handle reporting this to MS. Meanwhile, this representative case can be merged.
It turns out that MSVC doesn't recognize .cppm as C++ and needs -TP explicitly. It does recognize .cpp and .ixx as C++.