| 32 | //----------------------------------------------------------------------------- |
| 33 | |
| 34 | void LifetimeTracker::AddExtended(const VarDecl* decl, const ValueDecl* extending) |
| 35 | { |
| 36 | // Search for the extending VarlDecl which is already in `objects`. Insert this decl _after_ |
| 37 | if(auto it = std::ranges::find_if(objects, [&](const auto& e) { return e.item == extending; }); |
| 38 | it != objects.end()) { |
| 39 | const auto scope = (*it).scope; |
| 40 | objects.insert(std::next(it), {decl, LifetimeEntry::FuncStart::No, scope}); |
| 41 | } |
| 42 | } |
| 43 | //----------------------------------------------------------------------------- |
| 44 | |
| 45 | void LifetimeTracker::Add(const VarDecl* decl) |
no test coverage detected