Lines Matching refs:IndirectLocalPathEntry

6783 struct IndirectLocalPathEntry {  struct
6800 IndirectLocalPathEntry() {} in IndirectLocalPathEntry() argument
6801 IndirectLocalPathEntry(EntryKind K, Expr *E) : Kind(K), E(E) {} in IndirectLocalPathEntry() argument
6802 IndirectLocalPathEntry(EntryKind K, Expr *E, const Decl *D) in IndirectLocalPathEntry() function
6804 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry() function
6808 using IndirectLocalPath = llvm::SmallVectorImpl<IndirectLocalPathEntry>;
6823 if (E.Kind == IndirectLocalPathEntry::VarInit && E.D == VD) in isVarOnPath()
6829 return llvm::any_of(Path, [=](IndirectLocalPathEntry E) { in pathContainsInit()
6830 return E.Kind == IndirectLocalPathEntry::DefaultInit || in pathContainsInit()
6831 E.Kind == IndirectLocalPathEntry::VarInit; in pathContainsInit()
6936 if (It->Kind == IndirectLocalPathEntry::GslReferenceInit) in handleGslAnnotatedTypes()
6938 if (It->Kind == IndirectLocalPathEntry::GslPointerInit) in handleGslAnnotatedTypes()
6943 Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit in handleGslAnnotatedTypes()
6944 : IndirectLocalPathEntry::GslReferenceInit, in handleGslAnnotatedTypes()
7047 Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); in visitLifetimeBoundArguments()
7119 {IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByReferenceBinding()
7151 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByReferenceBinding()
7212 Path.push_back({IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByInitializer()
7233 Path.push_back({IndirectLocalPathEntry::LValToRVal, CE}); in visitLocalsRetainedByInitializer()
7241 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByInitializer()
7279 Path.push_back({IndirectLocalPathEntry::AddressOf, CE}); in visitLocalsRetainedByInitializer()
7371 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer()
7389 Path.push_back({IndirectLocalPathEntry::TemporaryCopy, Arg, in visitLocalsRetainedByInitializer()
7416 Path.push_back({IndirectLocalPathEntry::AddressOf, UO}); in visitLocalsRetainedByInitializer()
7490 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit) in shouldLifetimeExtendThroughPath()
7492 else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
7503 case IndirectLocalPathEntry::AddressOf: in nextPathEntryRange()
7504 case IndirectLocalPathEntry::LValToRVal: in nextPathEntryRange()
7505 case IndirectLocalPathEntry::LifetimeBoundCall: in nextPathEntryRange()
7506 case IndirectLocalPathEntry::TemporaryCopy: in nextPathEntryRange()
7507 case IndirectLocalPathEntry::GslReferenceInit: in nextPathEntryRange()
7508 case IndirectLocalPathEntry::GslPointerInit: in nextPathEntryRange()
7513 case IndirectLocalPathEntry::VarInit: in nextPathEntryRange()
7517 case IndirectLocalPathEntry::DefaultInit: in nextPathEntryRange()
7520 case IndirectLocalPathEntry::LambdaCaptureInit: in nextPathEntryRange()
7531 if (It->Kind == IndirectLocalPathEntry::VarInit) in pathOnlyInitializesGslPointer()
7533 if (It->Kind == IndirectLocalPathEntry::AddressOf) in pathOnlyInitializesGslPointer()
7535 if (It->Kind == IndirectLocalPathEntry::LifetimeBoundCall) in pathOnlyInitializesGslPointer()
7537 return It->Kind == IndirectLocalPathEntry::GslPointerInit || in pathOnlyInitializesGslPointer()
7538 It->Kind == IndirectLocalPathEntry::GslReferenceInit; in pathOnlyInitializesGslPointer()
7664 Path.back().Kind != IndirectLocalPathEntry::DefaultInit) { in checkInitializerLifetime()
7756 case IndirectLocalPathEntry::AddressOf: in checkInitializerLifetime()
7757 case IndirectLocalPathEntry::LValToRVal: in checkInitializerLifetime()
7762 case IndirectLocalPathEntry::LifetimeBoundCall: in checkInitializerLifetime()
7763 case IndirectLocalPathEntry::TemporaryCopy: in checkInitializerLifetime()
7764 case IndirectLocalPathEntry::GslPointerInit: in checkInitializerLifetime()
7765 case IndirectLocalPathEntry::GslReferenceInit: in checkInitializerLifetime()
7769 case IndirectLocalPathEntry::DefaultInit: { in checkInitializerLifetime()
7776 case IndirectLocalPathEntry::VarInit: { in checkInitializerLifetime()
7785 case IndirectLocalPathEntry::LambdaCaptureInit: in checkInitializerLifetime()
7806 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; in checkInitializerLifetime()