Lines Matching refs:IndirectLocalPathEntry

6842 struct IndirectLocalPathEntry {  struct
6859 IndirectLocalPathEntry() {} in IndirectLocalPathEntry() function
6860 IndirectLocalPathEntry(EntryKind K, Expr *E) : Kind(K), E(E) {} in IndirectLocalPathEntry() function
6861 IndirectLocalPathEntry(EntryKind K, Expr *E, const Decl *D) in IndirectLocalPathEntry() argument
6863 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry() function
6867 using IndirectLocalPath = llvm::SmallVectorImpl<IndirectLocalPathEntry>;
6882 if (E.Kind == IndirectLocalPathEntry::VarInit && E.D == VD) in isVarOnPath()
6888 return llvm::any_of(Path, [=](IndirectLocalPathEntry E) { in pathContainsInit()
6889 return E.Kind == IndirectLocalPathEntry::DefaultInit || in pathContainsInit()
6890 E.Kind == IndirectLocalPathEntry::VarInit; in pathContainsInit()
6994 for (const IndirectLocalPathEntry &PE : llvm::reverse(Path)) { in handleGslAnnotatedTypes()
6995 if (PE.Kind == IndirectLocalPathEntry::GslReferenceInit) in handleGslAnnotatedTypes()
6997 if (PE.Kind == IndirectLocalPathEntry::GslPointerInit) in handleGslAnnotatedTypes()
7002 Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit in handleGslAnnotatedTypes()
7003 : IndirectLocalPathEntry::GslReferenceInit, in handleGslAnnotatedTypes()
7106 Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); in visitLifetimeBoundArguments()
7178 {IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByReferenceBinding()
7210 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByReferenceBinding()
7271 Path.push_back({IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByInitializer()
7292 Path.push_back({IndirectLocalPathEntry::LValToRVal, CE}); in visitLocalsRetainedByInitializer()
7300 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByInitializer()
7338 Path.push_back({IndirectLocalPathEntry::AddressOf, CE}); in visitLocalsRetainedByInitializer()
7430 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer()
7448 Path.push_back({IndirectLocalPathEntry::TemporaryCopy, Arg, in visitLocalsRetainedByInitializer()
7475 Path.push_back({IndirectLocalPathEntry::AddressOf, UO}); in visitLocalsRetainedByInitializer()
7549 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit) in shouldLifetimeExtendThroughPath()
7551 else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
7562 case IndirectLocalPathEntry::AddressOf: in nextPathEntryRange()
7563 case IndirectLocalPathEntry::LValToRVal: in nextPathEntryRange()
7564 case IndirectLocalPathEntry::LifetimeBoundCall: in nextPathEntryRange()
7565 case IndirectLocalPathEntry::TemporaryCopy: in nextPathEntryRange()
7566 case IndirectLocalPathEntry::GslReferenceInit: in nextPathEntryRange()
7567 case IndirectLocalPathEntry::GslPointerInit: in nextPathEntryRange()
7572 case IndirectLocalPathEntry::VarInit: in nextPathEntryRange()
7576 case IndirectLocalPathEntry::DefaultInit: in nextPathEntryRange()
7579 case IndirectLocalPathEntry::LambdaCaptureInit: in nextPathEntryRange()
7590 if (It->Kind == IndirectLocalPathEntry::VarInit) in pathOnlyInitializesGslPointer()
7592 if (It->Kind == IndirectLocalPathEntry::AddressOf) in pathOnlyInitializesGslPointer()
7594 if (It->Kind == IndirectLocalPathEntry::LifetimeBoundCall) in pathOnlyInitializesGslPointer()
7596 return It->Kind == IndirectLocalPathEntry::GslPointerInit || in pathOnlyInitializesGslPointer()
7597 It->Kind == IndirectLocalPathEntry::GslReferenceInit; in pathOnlyInitializesGslPointer()
7723 Path.back().Kind != IndirectLocalPathEntry::DefaultInit) { in checkInitializerLifetime()
7815 case IndirectLocalPathEntry::AddressOf: in checkInitializerLifetime()
7816 case IndirectLocalPathEntry::LValToRVal: in checkInitializerLifetime()
7821 case IndirectLocalPathEntry::LifetimeBoundCall: in checkInitializerLifetime()
7822 case IndirectLocalPathEntry::TemporaryCopy: in checkInitializerLifetime()
7823 case IndirectLocalPathEntry::GslPointerInit: in checkInitializerLifetime()
7824 case IndirectLocalPathEntry::GslReferenceInit: in checkInitializerLifetime()
7828 case IndirectLocalPathEntry::DefaultInit: { in checkInitializerLifetime()
7835 case IndirectLocalPathEntry::VarInit: { in checkInitializerLifetime()
7844 case IndirectLocalPathEntry::LambdaCaptureInit: in checkInitializerLifetime()
7865 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; in checkInitializerLifetime()