Lines Matching refs:IndirectLocalPathEntry

6781 struct IndirectLocalPathEntry {  struct
6798 IndirectLocalPathEntry() {} in IndirectLocalPathEntry() function
6799 IndirectLocalPathEntry(EntryKind K, Expr *E) : Kind(K), E(E) {} in IndirectLocalPathEntry() function
6800 IndirectLocalPathEntry(EntryKind K, Expr *E, const Decl *D) in IndirectLocalPathEntry() argument
6802 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry() argument
6806 using IndirectLocalPath = llvm::SmallVectorImpl<IndirectLocalPathEntry>;
6821 if (E.Kind == IndirectLocalPathEntry::VarInit && E.D == VD) in isVarOnPath()
6827 return llvm::any_of(Path, [=](IndirectLocalPathEntry E) { in pathContainsInit()
6828 return E.Kind == IndirectLocalPathEntry::DefaultInit || in pathContainsInit()
6829 E.Kind == IndirectLocalPathEntry::VarInit; in pathContainsInit()
6934 if (It->Kind == IndirectLocalPathEntry::GslReferenceInit) in handleGslAnnotatedTypes()
6936 if (It->Kind == IndirectLocalPathEntry::GslPointerInit) in handleGslAnnotatedTypes()
6941 Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit in handleGslAnnotatedTypes()
6942 : IndirectLocalPathEntry::GslReferenceInit, in handleGslAnnotatedTypes()
7045 Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); in visitLifetimeBoundArguments()
7117 {IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByReferenceBinding()
7149 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByReferenceBinding()
7210 Path.push_back({IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByInitializer()
7231 Path.push_back({IndirectLocalPathEntry::LValToRVal, CE}); in visitLocalsRetainedByInitializer()
7239 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByInitializer()
7277 Path.push_back({IndirectLocalPathEntry::AddressOf, CE}); in visitLocalsRetainedByInitializer()
7369 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer()
7387 Path.push_back({IndirectLocalPathEntry::TemporaryCopy, Arg, in visitLocalsRetainedByInitializer()
7414 Path.push_back({IndirectLocalPathEntry::AddressOf, UO}); in visitLocalsRetainedByInitializer()
7488 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit) in shouldLifetimeExtendThroughPath()
7490 else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
7501 case IndirectLocalPathEntry::AddressOf: in nextPathEntryRange()
7502 case IndirectLocalPathEntry::LValToRVal: in nextPathEntryRange()
7503 case IndirectLocalPathEntry::LifetimeBoundCall: in nextPathEntryRange()
7504 case IndirectLocalPathEntry::TemporaryCopy: in nextPathEntryRange()
7505 case IndirectLocalPathEntry::GslReferenceInit: in nextPathEntryRange()
7506 case IndirectLocalPathEntry::GslPointerInit: in nextPathEntryRange()
7511 case IndirectLocalPathEntry::VarInit: in nextPathEntryRange()
7515 case IndirectLocalPathEntry::DefaultInit: in nextPathEntryRange()
7518 case IndirectLocalPathEntry::LambdaCaptureInit: in nextPathEntryRange()
7529 if (It->Kind == IndirectLocalPathEntry::VarInit) in pathOnlyInitializesGslPointer()
7531 if (It->Kind == IndirectLocalPathEntry::AddressOf) in pathOnlyInitializesGslPointer()
7533 if (It->Kind == IndirectLocalPathEntry::LifetimeBoundCall) in pathOnlyInitializesGslPointer()
7535 return It->Kind == IndirectLocalPathEntry::GslPointerInit || in pathOnlyInitializesGslPointer()
7536 It->Kind == IndirectLocalPathEntry::GslReferenceInit; in pathOnlyInitializesGslPointer()
7662 Path.back().Kind != IndirectLocalPathEntry::DefaultInit) { in checkInitializerLifetime()
7754 case IndirectLocalPathEntry::AddressOf: in checkInitializerLifetime()
7755 case IndirectLocalPathEntry::LValToRVal: in checkInitializerLifetime()
7760 case IndirectLocalPathEntry::LifetimeBoundCall: in checkInitializerLifetime()
7761 case IndirectLocalPathEntry::TemporaryCopy: in checkInitializerLifetime()
7762 case IndirectLocalPathEntry::GslPointerInit: in checkInitializerLifetime()
7763 case IndirectLocalPathEntry::GslReferenceInit: in checkInitializerLifetime()
7767 case IndirectLocalPathEntry::DefaultInit: { in checkInitializerLifetime()
7774 case IndirectLocalPathEntry::VarInit: { in checkInitializerLifetime()
7783 case IndirectLocalPathEntry::LambdaCaptureInit: in checkInitializerLifetime()
7804 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; in checkInitializerLifetime()