summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/partitions
Commit message (Collapse)AuthorAgeFilesLines
* cxxmodules: scan C++ sources for imports by defaultBen Boeckel2023-10-021-1/+1
| | | | | Existing projects are not using C++ modules in their sources, so introduce policy CMP0155 to enable scanning by default.
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-182-2/+2
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* RunCMake/CXXModules: fix partition importing syntaxBen Boeckel2022-07-261-1/+1
| | | | Apparently GCC accepts the ill-formed prior syntax.
* Tests/RunCMake/CXXModules: add module-using examplesBen Boeckel2022-06-164-0/+54
This includes a number of examples that should work for various levels of support in a compiler. There are a number of tests which are gated on various features in the compilers. To enable the tests, set `CMake_TEST_MODULE_COMPILATION` to a comma-separated (to avoid `;`-escaping problems) to the list of features which are supported: - `named`: Named modules are supported. - `shared`: Shared libraries with module usage at the API boundary are supported. - `partitions`: Named module partitions are supported. - `internal_partitions`: Named module internal partitions are supported. Additionally, a `CMake_TEST_MODULE_COMPILATION_RULES` file must be passed which contains the rules for how to build modules using the provided compiler. It will be included in the tests to provide these rules. To verify that the file provided works as intended, it must set `CMake_TEST_CXXModules_UUID` to a specific version to indicate that it is an expected file.