MCPcopy Create free account
hub / github.com/WheretIB/nullc / AddNamespaceToHash

Function AddNamespaceToHash

NULLC/Callbacks.cpp:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 return name;
187}
188unsigned AddNamespaceToHash(unsigned hash, NamespaceInfo* info)
189{
190 if(info->parent)
191 hash = AddNamespaceToHash(hash, info->parent);
192 hash = StringHashContinue(hash, info->name.begin, info->name.end);
193 hash = StringHashContinue(hash, ".");
194 return hash;
195}
196
197template<typename T>
198void NamespaceSelect(InplaceStr name, T& state)

Callers 1

NamespaceSelectFunction · 0.85

Calls 1

StringHashContinueFunction · 0.85

Tested by

no test coverage detected