Lines Matching refs:IndirectLocalPathEntry

7311 struct IndirectLocalPathEntry {  struct
7328 IndirectLocalPathEntry() {} in IndirectLocalPathEntry() function
7329 IndirectLocalPathEntry(EntryKind K, Expr *E) : Kind(K), E(E) {} in IndirectLocalPathEntry() function
7330 IndirectLocalPathEntry(EntryKind K, Expr *E, const Decl *D) in IndirectLocalPathEntry() argument
7332 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry() argument
7336 using IndirectLocalPath = llvm::SmallVectorImpl<IndirectLocalPathEntry>;
7351 if (E.Kind == IndirectLocalPathEntry::VarInit && E.D == VD) in isVarOnPath()
7357 return llvm::any_of(Path, [=](IndirectLocalPathEntry E) { in pathContainsInit()
7358 return E.Kind == IndirectLocalPathEntry::DefaultInit || in pathContainsInit()
7359 E.Kind == IndirectLocalPathEntry::VarInit; in pathContainsInit()
7464 for (const IndirectLocalPathEntry &PE : llvm::reverse(Path)) { in handleGslAnnotatedTypes()
7465 if (PE.Kind == IndirectLocalPathEntry::GslReferenceInit) in handleGslAnnotatedTypes()
7467 if (PE.Kind == IndirectLocalPathEntry::GslPointerInit) in handleGslAnnotatedTypes()
7472 Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit in handleGslAnnotatedTypes()
7473 : IndirectLocalPathEntry::GslReferenceInit, in handleGslAnnotatedTypes()
7576 Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); in visitLifetimeBoundArguments()
7666 {IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByReferenceBinding()
7698 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByReferenceBinding()
7759 Path.push_back({IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByInitializer()
7780 Path.push_back({IndirectLocalPathEntry::LValToRVal, CE}); in visitLocalsRetainedByInitializer()
7788 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByInitializer()
7826 Path.push_back({IndirectLocalPathEntry::AddressOf, CE}); in visitLocalsRetainedByInitializer()
7918 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer()
7936 Path.push_back({IndirectLocalPathEntry::TemporaryCopy, Arg, in visitLocalsRetainedByInitializer()
7963 Path.push_back({IndirectLocalPathEntry::AddressOf, UO}); in visitLocalsRetainedByInitializer()
8037 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit) in shouldLifetimeExtendThroughPath()
8039 else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
8050 case IndirectLocalPathEntry::AddressOf: in nextPathEntryRange()
8051 case IndirectLocalPathEntry::LValToRVal: in nextPathEntryRange()
8052 case IndirectLocalPathEntry::LifetimeBoundCall: in nextPathEntryRange()
8053 case IndirectLocalPathEntry::TemporaryCopy: in nextPathEntryRange()
8054 case IndirectLocalPathEntry::GslReferenceInit: in nextPathEntryRange()
8055 case IndirectLocalPathEntry::GslPointerInit: in nextPathEntryRange()
8060 case IndirectLocalPathEntry::VarInit: in nextPathEntryRange()
8064 case IndirectLocalPathEntry::DefaultInit: in nextPathEntryRange()
8067 case IndirectLocalPathEntry::LambdaCaptureInit: in nextPathEntryRange()
8078 if (It.Kind == IndirectLocalPathEntry::VarInit) in pathOnlyInitializesGslPointer()
8080 if (It.Kind == IndirectLocalPathEntry::AddressOf) in pathOnlyInitializesGslPointer()
8082 if (It.Kind == IndirectLocalPathEntry::LifetimeBoundCall) in pathOnlyInitializesGslPointer()
8084 return It.Kind == IndirectLocalPathEntry::GslPointerInit || in pathOnlyInitializesGslPointer()
8085 It.Kind == IndirectLocalPathEntry::GslReferenceInit; in pathOnlyInitializesGslPointer()
8211 Path.back().Kind != IndirectLocalPathEntry::DefaultInit) { in checkInitializerLifetime()
8303 case IndirectLocalPathEntry::AddressOf: in checkInitializerLifetime()
8304 case IndirectLocalPathEntry::LValToRVal: in checkInitializerLifetime()
8309 case IndirectLocalPathEntry::LifetimeBoundCall: in checkInitializerLifetime()
8310 case IndirectLocalPathEntry::TemporaryCopy: in checkInitializerLifetime()
8311 case IndirectLocalPathEntry::GslPointerInit: in checkInitializerLifetime()
8312 case IndirectLocalPathEntry::GslReferenceInit: in checkInitializerLifetime()
8316 case IndirectLocalPathEntry::DefaultInit: { in checkInitializerLifetime()
8323 case IndirectLocalPathEntry::VarInit: { in checkInitializerLifetime()
8332 case IndirectLocalPathEntry::LambdaCaptureInit: in checkInitializerLifetime()
8353 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; in checkInitializerLifetime()