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

Function GetIncludeGuardVariableName

Source/cmIncludeGuardCommand.cxx:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23std::string GetIncludeGuardVariableName(std::string const& filePath)
24{
25 cmCryptoHash hasher(cmCryptoHash::AlgoMD5);
26 return cmStrCat("__INCGUARD_", hasher.HashString(filePath), "__");
27}
28
29bool CheckIncludeGuardIsSet(cmMakefile* mf, std::string const& includeGuardVar)
30{

Callers 1

cmIncludeGuardCommandFunction · 0.85

Calls 2

HashStringMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…