MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / segmentsReferTo

Function segmentsReferTo

lib/utils/temp-variable.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146template<typename T>
147static bool segmentsReferTo(const T &segments, const TempVariableRef &ref)
148{
149 for (const auto &segment : segments) {
150 if (refsContain(segment->GetTempVarRefs(), ref)) {
151 return true;
152 }
153 }
154 return false;
155}
156
157bool TempVariable::IsInUse() const
158{

Callers 1

IsInUseMethod · 0.85

Calls 2

refsContainFunction · 0.85
GetTempVarRefsMethod · 0.45

Tested by

no test coverage detected