MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / StartScope

Method StartScope

LifetimeTracker.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21//-----------------------------------------------------------------------------
22
23void LifetimeTracker::StartScope(bool funcStart)
24{
25 RETURN_IF(not GetInsightsOptions().ShowLifetime)
26
27 ++scopeCounter;
28
29 objects.push_back(
30 {.funcStart = funcStart ? LifetimeEntry::FuncStart::Yes : LifetimeEntry::FuncStart::No, .scope = scopeCounter});
31}
32//-----------------------------------------------------------------------------
33
34void LifetimeTracker::AddExtended(const VarDecl* decl, const ValueDecl* extending)

Callers 2

StartLifetimeScopeMethod · 0.80
InsertArgMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected