1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-06-15 16:39:26 +08:00
CMake/Source/cmCxxModuleUsageEffects.cxx
Ben Boeckel cb356b540c cmCxxModuleUsageEffects: add a class to capture module usage effects
When importing a C++ module, there may be requirements imposed by the
importer so that the compiler can reliably read the BMI. For example,
the standard used in the importer may need to also apply to the imported
BMI.

Right now, there are no tracked requirements. As we learn more, this
class can start tracking more information.

See: https://wg21.link/p2581r2
2023-08-17 14:42:53 -04:00

22 lines
650 B
C++

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCxxModuleUsageEffects.h"
cmCxxModuleUsageEffects::cmCxxModuleUsageEffects(
cmGeneratorTarget const* /*gt*/)
: Hash("0000000000000000000000000000000000000000")
{
// TODO: collect information from the generator target as to what might
// affect module consumption.
}
void cmCxxModuleUsageEffects::ApplyToTarget(cmTarget* /*tgt*/)
{
// TODO: apply the information collected in the constructor
}
std::string const& cmCxxModuleUsageEffects::GetHash() const
{
return this->Hash;
}