| 43 | //----------------------------------------------------------------------------- |
| 44 | |
| 45 | void LifetimeTracker::Add(const VarDecl* decl) |
| 46 | { |
| 47 | RETURN_IF(not GetInsightsOptions().ShowLifetime) |
| 48 | |
| 49 | QualType type{decl->getType()}; |
| 50 | |
| 51 | RETURN_IF(type->isPointerType() or type->isRValueReferenceType()); |
| 52 | |
| 53 | // For life-time extended objects |
| 54 | // XXX contains in C++23 |
| 55 | RETURN_IF(std::ranges::find_if(objects, [&](const auto& e) { return e.item == decl; }) != objects.end()); |
| 56 | |
| 57 | objects.push_back({decl, LifetimeEntry::FuncStart::No, scopeCounter}); |
| 58 | } |
| 59 | //----------------------------------------------------------------------------- |
| 60 | |
| 61 | void LifetimeTracker::InsertDtorCall(const VarDecl* vd, OutputFormatHelper& ofm) |
no test coverage detected