MCPcopy Create free account
hub / github.com/Kitware/CMake / GetShortObjectFileName

Method GetShortObjectFileName

Source/cmLocalGenerator.cxx:4696–4704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4694}
4695
4696std::string cmLocalGenerator::GetShortObjectFileName(
4697 cmSourceFile const& source) const
4698{
4699 std::string objectName = this->GetRelativeSourceFileName(source);
4700 cmCryptoHash objNameHasher(cmCryptoHash::AlgoSHA3_512);
4701 std::string terseObjectName =
4702 objNameHasher.HashString(objectName).substr(0, 8);
4703 return terseObjectName;
4704}
4705
4706std::string cmLocalGenerator::ComputeShortTargetDirectory(
4707 cmGeneratorTarget const* target) const

Callers 5

GetPchFileMethod · 0.80
WriteAllSourcesMethod · 0.80

Calls 3

HashStringMethod · 0.80
substrMethod · 0.45

Tested by

no test coverage detected