Lines Matching refs:IndirectLocalPathEntry

7170 struct IndirectLocalPathEntry {  struct
7187 IndirectLocalPathEntry() {} in IndirectLocalPathEntry() argument
7188 IndirectLocalPathEntry(EntryKind K, Expr *E) : Kind(K), E(E) {} in IndirectLocalPathEntry() function
7189 IndirectLocalPathEntry(EntryKind K, Expr *E, const Decl *D) in IndirectLocalPathEntry() function
7191 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry() function
7195 using IndirectLocalPath = llvm::SmallVectorImpl<IndirectLocalPathEntry>;
7210 if (E.Kind == IndirectLocalPathEntry::VarInit && E.D == VD) in isVarOnPath()
7216 return llvm::any_of(Path, [=](IndirectLocalPathEntry E) { in pathContainsInit()
7217 return E.Kind == IndirectLocalPathEntry::DefaultInit || in pathContainsInit()
7218 E.Kind == IndirectLocalPathEntry::VarInit; in pathContainsInit()
7322 for (const IndirectLocalPathEntry &PE : llvm::reverse(Path)) { in handleGslAnnotatedTypes()
7323 if (PE.Kind == IndirectLocalPathEntry::GslReferenceInit) in handleGslAnnotatedTypes()
7325 if (PE.Kind == IndirectLocalPathEntry::GslPointerInit) in handleGslAnnotatedTypes()
7330 Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit in handleGslAnnotatedTypes()
7331 : IndirectLocalPathEntry::GslReferenceInit, in handleGslAnnotatedTypes()
7434 Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); in visitLifetimeBoundArguments()
7506 {IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByReferenceBinding()
7538 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByReferenceBinding()
7599 Path.push_back({IndirectLocalPathEntry::DefaultInit, DIE, DIE->getField()}); in visitLocalsRetainedByInitializer()
7620 Path.push_back({IndirectLocalPathEntry::LValToRVal, CE}); in visitLocalsRetainedByInitializer()
7628 Path.push_back({IndirectLocalPathEntry::VarInit, DRE, VD}); in visitLocalsRetainedByInitializer()
7666 Path.push_back({IndirectLocalPathEntry::AddressOf, CE}); in visitLocalsRetainedByInitializer()
7758 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer()
7776 Path.push_back({IndirectLocalPathEntry::TemporaryCopy, Arg, in visitLocalsRetainedByInitializer()
7803 Path.push_back({IndirectLocalPathEntry::AddressOf, UO}); in visitLocalsRetainedByInitializer()
7877 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit) in shouldLifetimeExtendThroughPath()
7879 else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
7890 case IndirectLocalPathEntry::AddressOf: in nextPathEntryRange()
7891 case IndirectLocalPathEntry::LValToRVal: in nextPathEntryRange()
7892 case IndirectLocalPathEntry::LifetimeBoundCall: in nextPathEntryRange()
7893 case IndirectLocalPathEntry::TemporaryCopy: in nextPathEntryRange()
7894 case IndirectLocalPathEntry::GslReferenceInit: in nextPathEntryRange()
7895 case IndirectLocalPathEntry::GslPointerInit: in nextPathEntryRange()
7900 case IndirectLocalPathEntry::VarInit: in nextPathEntryRange()
7904 case IndirectLocalPathEntry::DefaultInit: in nextPathEntryRange()
7907 case IndirectLocalPathEntry::LambdaCaptureInit: in nextPathEntryRange()
7918 if (It.Kind == IndirectLocalPathEntry::VarInit) in pathOnlyInitializesGslPointer()
7920 if (It.Kind == IndirectLocalPathEntry::AddressOf) in pathOnlyInitializesGslPointer()
7922 if (It.Kind == IndirectLocalPathEntry::LifetimeBoundCall) in pathOnlyInitializesGslPointer()
7924 return It.Kind == IndirectLocalPathEntry::GslPointerInit || in pathOnlyInitializesGslPointer()
7925 It.Kind == IndirectLocalPathEntry::GslReferenceInit; in pathOnlyInitializesGslPointer()
8051 Path.back().Kind != IndirectLocalPathEntry::DefaultInit) { in checkInitializerLifetime()
8143 case IndirectLocalPathEntry::AddressOf: in checkInitializerLifetime()
8144 case IndirectLocalPathEntry::LValToRVal: in checkInitializerLifetime()
8149 case IndirectLocalPathEntry::LifetimeBoundCall: in checkInitializerLifetime()
8150 case IndirectLocalPathEntry::TemporaryCopy: in checkInitializerLifetime()
8151 case IndirectLocalPathEntry::GslPointerInit: in checkInitializerLifetime()
8152 case IndirectLocalPathEntry::GslReferenceInit: in checkInitializerLifetime()
8156 case IndirectLocalPathEntry::DefaultInit: { in checkInitializerLifetime()
8163 case IndirectLocalPathEntry::VarInit: { in checkInitializerLifetime()
8172 case IndirectLocalPathEntry::LambdaCaptureInit: in checkInitializerLifetime()
8193 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; in checkInitializerLifetime()