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

Method ComputeSuffixHash

Source/cmInstrumentation.cxx:797–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797std::string cmInstrumentation::ComputeSuffixHash(
798 std::string const& command_str)
799{
800 cmCryptoHash hasher(cmCryptoHash::AlgoSHA3_256);
801 std::string hash = hasher.HashString(command_str);
802 hash.resize(20, '0');
803 return hash;
804}
805
806std::string cmInstrumentation::ComputeSuffixTime(
807 cm::optional<std::chrono::system_clock::time_point> time)

Callers 2

InstrumentTestMethod · 0.95
InstrumentCommandMethod · 0.95

Calls 2

HashStringMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected